Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upgrade to 1.5

 
Gjorgi Var
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hola,
I have JDK 1.4 installed and it works just fine. However, I want to take advantage of the new features given in 1.5. Do I have to first uninstall 1.4 and then install 1.5 or can all that be accomplished with a single upgrade step...
Thanks,
 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, that is what I do...

Correct me if I am wrong...

thanks
daniel
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just install 1.5 and change your JAVA_HOME environment setting.
You may also have to remove java.exe and javaw.exe from your windows directory (you'll have to do this if your path now says jdk1.5.0 yet java -version reports 1.4, or alternatively you get a classfile version error (49 found, 48 required) when running a freshly compiled class).

If you had 1.4 installed properly, that should be all you need to do.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't have to uninstall JDK 1.4. Just be sure to install JDK 1.5 in a different directory (folder) and change any related system variables (such as PATH and JAVA_HOME) to point to the new installation. This will make it so you can easily go back to 1.4 if necessary. Of course, once you are completely converted over to 1.5, you may then decide to uninstall 1.4.

Layne
 
Gjorgi Var
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Layne... indeed, it is not necessary to uninstall 1.4 in order to use new features of 1.5. Simple change of the PATH enviromental variable value after instalation of new JDK does it... but also the JAVA_HOME was mentioned. Where do I find it and to what do I change? I don't remember even declaring it while installing 1.4... OS is WinXP home edition...
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't worry about JAVA_HOME. It is occassionally used by programming tools like the NetBeans IDE. If you haven't set it previously, then you probably don't need it atm.

Layne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic