Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for batch file with which to set up Java Variables

Status
Not open for further replies.

JProg

Programmer
Apr 4, 2002
88
JP
Hey Everyone,

I am trying to get my hands on a batch file that will effectively :) set up the Java Variables on an XP machine. I don't know if this is even possible but I have to assume that it is. The thing is I am studying for Java Certification at the moment, and every day I am on a different computer at my place of study. I carry a copy of the latest jsdk with me on a flash drive and it would be really handy if I had a batch file that I could run and just be done with the setup! I seem to be wasting at least half an hour a day trying to get java going!!! So any help will be much appreciated. Thanks heaps.

Regards

Davo
 
I just use something like :

set JAVA_HOME=C:\wherever
set PATH=%JAVA_HOME%\bin;%PATH%
set CLASSPATH=.;%CLASSPATH%
set CLASSPATH=C:\someotherplace\somecustomjarfile.jar;%CLASSPATH%

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top