Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2007

Tip: Looking for answers? Try searching our database.

newbie: setting OS variables

Thread view: 
R.A.M. - 06 Jan 2007 07:29 GMT
Hello,
I am installing Java in Windows XP. I added to my autoexec.bat:

JRE_HOME=C:\Program Files\Java\jre1.5.0_10
JAVA_HOME=E:\Program Files\Java\jdk1.5.0_10
CATALINA_HOME=E:\Program Files\apache-tomcat-5.5.20
CLASSPATH=F:\Programy\Java
PATH=%PATH%;C:\Program Files;%JRE_HOME%\bin;%JAVA_HOME%\bin
%CATALINA_HOME%\bin\startup.bat

Is it OK?
/RAM/
Sean Fritz - 06 Jan 2007 07:49 GMT
> Hello,
> I am installing Java in Windows XP. I added to my autoexec.bat:
[quoted text clipped - 8 lines]
> Is it OK?
> /RAM/

Should be OK.  Not too familiar with what XP does with autoexec.  The best
place to set them is System > Advanced > System Variables.  The names might
not be exact, I don't have Windows running right now.
Lew - 06 Jan 2007 16:49 GMT
>> Hello,
>> I am installing Java in Windows XP. I added to my autoexec.bat:
[quoted text clipped - 8 lines]
>> Is it OK?
>> /RAM/

> Should be OK.  Not too familiar with what XP does with autoexec.  The best
> place to set them is System > Advanced > System Variables.  The names might
> not be exact, I don't have Windows running right now.

Yeah, autoexec.bat is an anachronism. Stick with Control Panel/ System /
Advanced tab / Environment Variables to set your envars.

You do not need CLASSPATH, really. Do you have class files (Java(tm) bytecode
in files with a '.class' extension) in subdirectories of your directory
'F:\Programy\Java'? If not, then why have it in the classpath?

It is almost unheard-of for 'C:\Program Files' to be in a Windows PATH, but,
hey, it's your machine.

You very likely do not need both the JRE_HOME and JAVA_HOME bin directories in
the PATH.

What is in the PATH prior to running your script?

I like to use forward slashes instead of backslashes for paths. Backslash will
always be an escape for me.

- Lew


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.