Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Upgrade to 1.5

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, that is what I do...

Correct me if I am wrong...

thanks
daniel
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic