LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2006, 04:41 AM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
eclipse, how to specify which version of java to use


im on a 64 bit machine, and i want to run eclipse... i have java 1.4 for 32 bit, and java 1.5 for 64 bit. when eclipse starts, it tries to use 1.5, is there a way to specify it to use 1.4?
 
Old 01-05-2006, 11:23 AM   #2
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
I THINK there's a per-project setting you can use for this - create a new project, then look under the preferences for that project. If I can find it on my system I'll re-post.
[EDIT] - Try under "Window->Preferences->Java->Installed JREs". You can add multiple JREs/compilers there, and you can specify one of them to be default. I'm not 100% sure this will do what you need, but you might want to try it.

Last edited by pnellesen; 01-05-2006 at 11:29 AM.
 
Old 01-05-2006, 12:20 PM   #3
cafletch
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo 2005.1
Posts: 9

Rep: Reputation: 0
There are 2 places to change the Java Virtual machine.
1. Globally - all projects (default) to this version

Windows -> Preferences -> Java -> Installed JREs
Check box is the default

2. Per Project
Right click on project
(NOTE: Project must be open)
Select Java Compiler
Check Enable Project Specific settings
Select the version you want
 
Old 01-05-2006, 12:56 PM   #4
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
sorry, i wasnt being specific enough. im talking about what version of java eclipse uses to run itself. eclipse wont even load because it tries to run itself under the64 bit java version.
 
Old 01-05-2006, 01:08 PM   #5
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
You may have to set the "JAVA_HOME" system variable to wherever 1.4 is. I THINK that's sufficient.
 
Old 01-05-2006, 01:22 PM   #6
cafletch
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo 2005.1
Posts: 9

Rep: Reputation: 0
Write wrapper scripts...

run_eclipse_5.sh
set java_home/path to point to java 5.0
run eclipse

run_eclipse_4.sh
set java home/path to point to java 1.4
run eclipse

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with Java and Eclipse VE Veteq Programming 1 11-10-2005 07:01 PM
Java (Sun, Eclipse, gcj, ...) rpz Linux - Software 3 08-08-2005 09:02 PM
java and eclipse eng_raar Programming 4 01-08-2005 05:20 PM
Eclipse Can't Find Java jeffChuck Linux - Software 5 01-04-2005 06:06 AM
Which Eclipse version to download? dvm Linux - Software 1 11-20-2004 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration