File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes How do i upgrade jdk version on my eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How do i upgrade jdk version on my eclipse" Watch "How do i upgrade jdk version on my eclipse" New topic
Author

How do i upgrade jdk version on my eclipse

nirmal Rchavan
Ranch Hand

Joined: Jul 10, 2007
Posts: 35
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

Joined: Jul 31, 2001
Posts: 282
Add it via Window >> Preferences >> Java >> Installed JREs.
nirmal Rchavan
Ranch Hand

Joined: Jul 10, 2007
Posts: 35
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

Joined: Jul 31, 2001
Posts: 282

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

Joined: Jul 10, 2007
Posts: 35
Yes that is the solution.. Thank you so much jay!
Kashish Durgiya
Greenhorn

Joined: Nov 22, 2011
Posts: 5
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..!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do i upgrade jdk version on my eclipse