I have Eclipse 3.5.1 and Java Portable (from Portableapps.com) installed on a portable hard drive and would like to point my Eclipse to use the portable apps Java version. This will allow me to use Eclipse on a computer even if Java isn't installed. How do I accomplish this?
views:
341answers:
2
+2
A:
Perhaps take a look at the Eclipse Portable project on SourceForge
EDIT: Alternatively, edit eclipse.ini file and add -vm ..\path-to-jre\bin\javaw
Amro
2009-10-16 23:41:20
I've been following their progress, but don't want to use anything that's not "official" for my day job. Once it officially hits and I can be sure it's stable and works well I'll definitely be using it.
PHLAK
2009-10-16 23:48:39
Just noticed your edit. Will try this tomorrow and see how that works. Thanks.
PHLAK
2009-10-19 07:06:19
Adding "-vm ..\path-to-jre\bin\javaw" to eclipse.ini doesn't seem to have any effect. Any other ideas?
PHLAK
2009-10-23 04:57:50
Adding "-vm ..\path-to-jre\bin\javaw" as an argument worked, but I am unable to get this to work with my portable apps menu. Any thoughts?
PHLAK
2009-10-24 00:54:32
I'm assuming you are replacing "..\path-to-jre" with the actual relative path to the potable JRE, right?
Amro
2009-10-24 01:30:01
BTW, here is my reference: http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F
Amro
2009-10-24 01:34:05
Yes, I'm specifying the path, not just copy/pasting.
PHLAK
2009-10-27 23:03:10
As stated in the wiki, you must NOT use quotes around the path when using the .ini file. Perhaps that was the problem?
Amro
2009-10-27 23:22:52
Nope... didn't use quotes.
PHLAK
2009-11-01 04:42:42
Guess I'm just going to have to wait for Eclipse Portable to be officially released then.
PHLAK
2009-12-10 15:58:00
A:
Open Eclipse.
Navigate to Window > Preferences > Java > Installed JREs
Add the JRE on your portable hard drive
Set this as your default JRE.
Jon Quarfoth
2009-10-16 23:41:23
Is the the Java path it uses to RUN Eclipse? The description in the menu states "...the checked JRE is added to the build path of newly created Java projects". That doesn't sound like what I'm trying to accomplish.
PHLAK
2009-10-16 23:53:56
Indeed, I misunderstood. I'm guessing @amro's solution of modifying the .ini file may have some merit for your case.
Jon Quarfoth
2009-10-17 00:23:35