|
-
Oct 29th, 2000, 04:00 PM
#1
Thread Starter
Dazed Member
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, 04:33 PM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|