|
-
Oct 27th, 2005, 04:25 PM
#1
Thread Starter
Frenzied Member
problem running java program
i can run my java program if the .class(which is the main) is in the bin directory of java. I just type:
java myprogram
but how do I run that same .class file if its in c:\myJavaProgram folder
by the way, when I compiled the .java file, I had to use a .jar file, basically this was my command line:
javac -cp "C:\Program Files\Java\jdk1.5.0_05\bin\stuff.jar" myprogram.java
Last edited by benmartin101; Oct 27th, 2005 at 04:32 PM.
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
|