PDA

Click to See Complete Forum and Search --> : JDK1.3 Question


Dillinger4
Oct 29th, 2000, 03:00 PM
Hi,
I just got this JDK1.3 from my friend. And I wrote a small app and saved it in notepad. Under HelloWorldApp.Java
When i goto compile it C:\JDK1.3\Bin javac -sourcepath HelloWorldApp.Java dos says nothing and just puts up the current directory. The help file says "If the compilation succeeds, the compiler creates a file named HelloWorldApp.class in the same directory (folder) as the Java source file (HelloWorldApp.java). But there is no class file to be found. Can anyone show me a simple example of how to compile something.
Thanks.....

Oct 30th, 2000, 03:33 PM
You type the bold commands...

From the directory "TheDir" where HelloWorldApp.java is:
C:\TheDir>c:\jdk1.3\bin\javac HelloWorldApp.java

You should then see HelloWorldApp.class after this compiles.

Then use "java.exe" without the ".class" extension.
C:\TheDir>c:\jdk1.3\bin\java HelloWorldApp

I noticed that "-sourcepath" didn't work correctly in 1.2