Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Raynard Fischer   on Oct 05 In Java Category.

  
Question Answered By: Abrianna Rossi   on Oct 05

To make it more convenient add the following classpath in the
startup file on your OS. For example, autoexec.bat on windows:

set CLASSPATH=.;c:\jdk\lib\tools.jar;%CLASSPATH%

Having done so you need to only restart your pc once.
This will ensure all your programs run. You can check
the current classpath by running SET at command prompt.

In case, you like the command prompt you can run using:
java -classpath yourclasspath ApplnClass

Now, all you need to do is compile your .java file and run it.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on JVM Launcher Or get search suggestion and latest updates.


Tagged: