Results 1 to 7 of 7

Thread: problem running java program

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    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
  •  



Click Here to Expand Forum to Full Width