I have installed JDK 1.5,but forgot how to set environmental variables.I remember lightly that we are supossed to set 'PATH' and 'JAVA_HOME' variables.Please help me with wat are the variables to be set and their values.
Thanks ion advance :D
Printable View
I have installed JDK 1.5,but forgot how to set environmental variables.I remember lightly that we are supossed to set 'PATH' and 'JAVA_HOME' variables.Please help me with wat are the variables to be set and their values.
Thanks ion advance :D
Unfortunately I'm not able to post links yet, however a simple google search for "setting classpath for java" will yield several pages which can give you instructions on how to do that. The problem is it's different for each operating system, and probably slightly different between different versions of the same OS (i.e. it might be a slightly different procedure from WinXP and Vista).
It's not difficult, it's just a matter of knowing where to go and what to type to get it all set up.
Just search on the web about setting-up the environment variables in Java. You can find lots of articles about that.
Thanks.I did set my environmental variables.But i wanted to confirm should i set 'JAVA_HOME' variables also?I found different answers on this topic.If i cud get some help?
Are you working on Windows?
Yes I am working on Windows XP
You may or may not set the JAVA_HOME variable depending on your needs. Adding the jdk's bin directory to your PATH is sufficient to make you compile and run java programs from your command line.
Some applications expect a JAVA_HOME to be set and if you have such applications then you have to set it.