Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Set default java version
Set default java version [message #552133] Wed, 11 August 2010 03:14 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: August 2010
Junior Member
I am trying to upgrade from java 1.5 to java 1.6.

I want to set the default version of java as java 1.6.

I know we can set this at the workspace level in
Windows --> Preferences --> Java --> Compiler but this will only set it for the workspace but once i create a new workspace, i have to set the same parameter in the new workspace also. Instead, is there a way i can set it at the eclipse installation level that i want to use this Jre (like setting java_home environment variable)


Any help related to this would be great.

Thanks in Advance.
Re: Set default java version [message #552158 is a reply to message #552133] Wed, 11 August 2010 06:52 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
It generally starts with the jvm that is used by eclipse. Eclipse unless specified uses the jvm in the path. You could explicitly specify the jvm through the -vm argument when you launch eclipse or specify it in the eclipse.ini file. Look at http://wiki.eclipse.org/Eclipse.ini.
Re: Set default java version [message #552165 is a reply to message #552133] Wed, 11 August 2010 07:14 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
uptodatealways@gmail.com wrote:
> I am trying to upgrade from java 1.5 to java 1.6.
>
> I want to set the default version of java as java 1.6.
>
> I know we can set this at the workspace level in Windows -->
> Preferences --> Java --> Compiler but this will only set it for the
> workspace but once i create a new workspace, i have to set the same
> parameter in the new workspace also. Instead, is there a way i can set
> it at the eclipse installation level that i want to use this Jre (like
> setting java_home environment variable)
The best way is to set it on the project and store the project in a
repository, e.g. CVS.

Dani
>
>
> Any help related to this would be great.
>
> Thanks in Advance.
Re: Set default java version [message #552310 is a reply to message #552158] Wed, 11 August 2010 16:16 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: August 2010
Junior Member
I must have been clear on what i wanted. I want to use any project that i run under eclipse to use java 1.6.

Seeting the vm in eclipse.ini tells eclipse on which version of java eclipse has to use.

[Updated on: Wed, 11 August 2010 16:16]

Report message to a moderator

Re: Set default java version [message #554692 is a reply to message #552133] Tue, 24 August 2010 06:31 Go to previous message
Eclipse UserFriend
Compiler but this will only set it for the workspace but once i create a new workspace, i have to set the same parameter in the new workspace also.
Previous Topic:JDT source code plug-ins in Helios
Next Topic:Stuck in "Initializing Java Tooling (1%)"
Goto Forum:
  


Current Time: Thu Apr 25 23:13:50 GMT 2024

Powered by FUDForum. Page generated in 0.02838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top