Installing J2SE 1.4.2 SDK

Hi there,

I just installed J2SE 1.4.2 SDK. I can set the path for javac from the command line but every time I restart my computer I have to set it again.

Could you tell me how to set it permanently?

I am using Windows XP home.

Thanks,

Paul
LVL 1
PaulmulAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
I would define the following

JAVA_HOME <the path to the sdk installation directory>

then add

;%JAVA_HOME%\bin

to the PATH
0
 
zzynxSoftware engineerCommented:
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
PaulmulAuthor Commented:
Where? I want to do it so I don't have to type this every time. I did this when I installed perl but can not remember how. There is somewhere that you can add it.
0
 
CEHJCommented:
See the link i posted. You only need to do this once
0
 
PaulmulAuthor Commented:
The link you posted does not say how to add the ones for Java. I have since done this using another guide. If anyone actually says how to do it I will give top marks. Otherwise I am splitting the marks with the worst grade and posting the link I found.
0
 
sciuriwareCommented:
Start->Settings->Control Panel->System->Advanced->Environment Variables->User Variables->Path->Edit

;JOOP!
0
 
CEHJCommented:
>>The link you posted does not say how to add the ones for Java.

The link i posted is *exactly* what you need, namely adding to the PATH variable so that javac can be used
0
 
sciuriwareCommented:
Mine is now:
C:\Program Files\SSH Communications Security\SSH Secure Shell;E:\JDK1.5.0\BIN;D:\JOOP\EXE;D:\JOOP\BAT

and JOOP is me.
0
 
sciuriwareCommented:
Of course you must replace E:\JDK1.5.0 by the path where you installed JAVA ....

;JOOP!
0
 
PaulmulAuthor Commented:
CEHJ, My mistake I misunderstood your second post. I will give you the marks. However I recommend people look at http://www.cs.ucsb.edu/~teliot/Path_and_Classpath.htm it is very easy to follow.

sciuriware, sorry CEHJ got it first.
0
 
zzynxSoftware engineerCommented:
0
 
CEHJCommented:
If you find the thing about JAVA_HOME confuses you, just forget that for the moment and add to the PATH directly
0
 
CEHJCommented:
>>
However I recommend people look at http://www.cs.ucsb.edu/~teliot/Path_and_Classpath.htm it is very easy to follow.
>>

Yes, that's OK, although i'm surprised that autoexec.bat is run by default on XP, as is implied there
0
 
CEHJCommented:
8-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.