It seems that your class myJavaApp is in some kind of package, and you did not specify the package name in addition to the lack of setting the class path.
My directory structure for testing:
. \--- jcifs-1.3.17.jar \--- testapp \--- myJavaApp.java
I compiled it as follows:
javac -cp jcifs-1.3.17.jar testapp/myJavaApp.java
which gave myJavaApp.class in the testapp folder as expected. I ran it on linux as follows:
java -cp .:jcifs-1.3.17.jar testapp.myJavaApp
and in such windows:
java -cp .;jcifs-1.3.17.jar testapp.myJavaApp
He threw away
jcifs.util.transport.TransportExceptionjava java.net.NoRouteToHostException: No route to host
which means myJavaApp was working successfully.
If we remove the testapp directive, for example.
. \--- jcifs-1.3.17.jar \--- myJavaApp.java
It compiles with:
javac -cp jcifs-1.3.17.jar myJavaApp.java
and on linux it works with:
java -cp .:jcifs-1.3.17.jar myJavaApp
for windows
java -cp .;jcifs-1.3.17.jar myJavaApp
EDIT:
all java [c] commands were run from the root directory (.) / testing
EDIT ^ 2:
I downloaded your code and put myself in the netp directory. Compiled the code as follows:
C:\netp>"C:\Program Files\Java\jdk1.6.0_25\bin\javac.exe" -cp jcifs-krb5-1.3.17.jar netp.java
and successfully execute it as follows:
C:\netp>"C:\Program Files\Java\jdk1.6.0_25\bin\java.exe" -cp .;jcifs-krb5-1.3.17.jar netp
output:
START END