Installing Java in Win XP SP2
Posted 06 October 2004 - 07:19 AM
I have my computer running windows xp sp2 (i guess latest xp) operating system. I downloaded and installed the latest Java software :
Java 2 Enterprise Edition (J2EE) from sun microsystems
A few questions I have:
1. Was it necessary that I must have installed Java 2 Software Developer's Kit (J2SDK) before I installed J2EE ?
If yes, then should I un-install J2EE first, install the J2SDK and re-install J2EE or I can just download and install J2SDK now as J2EE is already running.
2. Do you recommend (please let me know why) installing J2SDK even I already have J2EE ?
3. By default the Java Compiler has been installed somewhere at c:\sun\...\j2...
Can you please suggest how to update path variable for Java extensions (e.g. javac) under the windows xp sp2 operating system ?
Lastly, I ask for your kind suggestion. It has been quiet while I have had visited WNSO forums (i'm sure to be regular by now). Please let me know if you guys have talked something about Java earlier... I'll appreciate to have links.
Posted 06 October 2004 - 11:35 AM
But you also need to spend little time there for research.
As you are also not familiar, I will suggest you to go step by step guide. [ Have you ever set path varialble before? ] If you are confused delete that directory you just made and start fresh here although it says
While you do not need to set your system's PATH variable to run Java, other software you will install later expects that your PATH variable will already have been set. [ do not confuse seing j2sk 'n' j2ee installation process are fairly same ]
http://www.apl.jhu.e.../settingup.html This will lead you to the correcct path as you are a newbie.
Edited by rajunpl, 06 October 2004 - 11:38 AM.
Posted 06 October 2004 - 01:49 PM
when u download J2EE, u should be able to download SDK,,and install the SDK. You must have SDK tools if u r doing any development work.
Does not matter where ur java compiler ( javac.exe ) is...add javac.exe to environment variables.
you can set a variable called 'CLASS_PATH' that will tell java.exe where to find classes that are part of this application. It can include a directory (just class files) or an explicit jar file (c:\temp\test.jar)
here's also a JAVA_HOME variable that helps the runtime environment find it's core stuff
Edited by linuxuser, 06 October 2004 - 01:49 PM.
Posted 07 October 2004 - 12:27 PM
Replies are really helpful. I did update the PATH variable and now it works. I understand that I can download J2SDK as well. A short question remaining is -
Is it okay I install J2SDK now (my computer already has J2EE), or it is sensible to un-install the J2EE first, install the J2SDK and re-install J2EE ?
Is it going to make conflict either any one should be installed prior to another... or we can just do it anyway.
Thanks for your time...
Posted 07 October 2004 - 01:10 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users