Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do i upgrade jdk version on my eclipse

 
nirmal Rchavan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have installed eclipse 3.1 on my system. i think the eclipse 3.1 comes built-in with jdk1.4. I also installed jdk 1.5 on my system.
How do i configure my eclipse to make use of jdk1.5 (my ecliple is installed in d:\ and jdk1.5 in c:\)


D:\eclipse\eclipse.exe -vm C:\Program Files\Java\jdk1.5.0_06\jre\bin\javaw -vmargs -Xmx512M -Xms256M

This is the command i used in the target section on eclipse3.1
i got an error (jre or jdk must be avaliable to run eclipse)
 
Jay Damon
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add it via Window >> Preferences >> Java >> Installed JREs.
 
nirmal Rchavan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Jay,
The installed jre that is displayed on the window(window/prefrences/java/installed)is C:\Program Files\Java\jre1.5.0_06. Now where do i add the -vm arguments, and if the installed jre is 1.5 why are the java5 features not enabled
 
Jay Damon
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Now where do i add the -vm arguments


From Window >> Preferences >> Java >> Installed JREs, click to select and highlight the JRE (do not select the check box) and click Edit. Specify the Default VM Arguments.


if the installed jre is 1.5 why are the java5 features not enabled


You probably need to change the compiler compliance level. From Window >> Preferences >> Java >> Compiler, select the Compliance and Classfiles tab. Choose a Compiler compliance level.
 
nirmal Rchavan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes that is the solution.. Thank you so much jay!
 
Kashish Durgiya
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to both of you, to nirmal for starting this topic, and to Jay for providing the accurate solution...!! I also had the same problem and solved it by going through this topic..!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic