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:\)
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: 279
posted
0
Add it via Window >> Preferences >> Java >> Installed JREs.
nirmal Rchavan
Ranch Hand
Joined: Jul 10, 2007
Posts: 35
posted
0
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: 279
posted
0
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
posted
0
Yes that is the solution.. Thank you so much jay!
Kashish Durgiya
Greenhorn
Joined: Nov 22, 2011
Posts: 5
posted
0
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..!