• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Use new JDK in eclipse

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I installed the 1.4.1 runtime and tried to let it run with eclipse. In the preferences I set JVM version to 1.4. In the project settings I replaced the old rt.jar with the new rt.jar .
And I also put the new JRE into the Installed JREs in preferences/Java.
Guess what, it doesn't work ....
What steps do I have to make in order to get it running ?
Thanx for your help,
Max
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Maximilian Trenks:
Hi there,
I installed the 1.4.1 runtime and tried to let it run with eclipse. In the preferences I set JVM version to 1.4. In the project settings I replaced the old rt.jar with the new rt.jar .
And I also put the new JRE into the Installed JREs in preferences/Java.
Guess what, it doesn't work ....


For recent versions of Eclipse, you don't need to include rt.jar in the project settings, as it is implicit in the "JRE System Library" entry, which is the entry you need to change. Open the project settings, go to "Java Build Path", "Libraries", click on the "JRE System Library" entry, click "Edit..." and choose the new JRE from the drop-down list. If it's not there, you can use the "Add Library..." button on this same properties page to add it.
This applies only to recent versions, of course - earlier ones only have the JRE_LIB variable. I can't say how you change this variable as I'm no longer running the earlier release. But heck, it's free - upgrade!
Simes.
 
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic