SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:Welcome to the Ranch!
You can use the latest JDK and Tomcat versions without problems, although I'd stick with JDK 6 update 26 because of a bug in Java 7. Just make sure that the Tomcat installer requires a 64-bit JRE (installed with the JDK) if you have a 64-bit Windows.
As for the paths, I suggest setting up two:
- JAVA_HOME, pointing to the root of the JDK folder.
- PATH, it should include %JAVA_HOME%\bin. Keep the existing PATH contents, just add this one to either the start or the end (use ; to separate paths).
Read this for instructions on setting any environment variable. Just ignore the CLASSPATH variable, you don't need it.
Joniela Geldenhuys wrote:ok so I downloaded JDK6 and Tomcat7. can you please explain how to set the paths exactly???
Sorry for being so stupid
Raymond Tong wrote:1) Run C:\Windows\System32\SystemPropertiesAdvanced.exe
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Not at the end, no. There may be a Java™ installation in other folders; there is often a J1.4.2 JRE in the System or System32 folder, for example. The computer will find that Java™ installation first, and blithely use it, oblivious of the fact that you have been compiling on Java7. You will first know about this when you get an incompatible type error. You should put that additional PATH entry at the beginning of the PATH, and delete any other obvious Java™ entries (eg C:\Program Files\Java\jdk1.4.2_12\bin).Raymond Tong wrote: . . . Append ";" following by your Java path at the end (e.g. ";C:\Program Files\Java\jdk1.7") . . .l