• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running Java programs outside of IDE

 
Travis Sobeck
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can build programs, compile them, and run them in the IDE just fine. The question is, how do I run the program on a machine with JRE without the IDE?
 
Jeff Langr
author
Ranch Hand
Posts: 799
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the java executable (java.exe under Windows). Make sure you have a path to the bin directory of your JRE. Then execute something like:



You can set your classpath ahead of time, if necessary, or set it using the -classpath (or -cp) option. For details on the java command, simply enter java at the command line.

-Jeff-
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic