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?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
I know it's been ages since this post has been active, but I might have three additional details to contribute (at least they seemed to be crucial in my case):
/
, not\
ineclipse.ini
At least on MS Windows 7 (64 bit), it seems to be very important that you put the
-vm ../path-to-jre/bin/javaw.exe
at the very beginning of theeclipse.ini
file and that it is actually two lines:-vm
../path-to-jre/bin/javaw.exe
Otherwise Eclipse seems to first try to find
C:\Windows\System32\javaw.exe
which will cause an error (at least my error log says so)../path-to-jre/bin/server/jvm.dll
As of 2013-04-19 for Eclipse 4.2.2 (Juno), this is how my
eclipse.ini
looks like:Note that
/Java64/bin/javaw.exe
is taken from portable javaPerhaps take a look at the Eclipse Portable project on SourceForge
EDIT: Alternatively, edit the eclipse.ini file and add:
[The new line after -vm matters]
Open Eclipse.
Navigate to Window > Preferences > Java > Installed JREs
Add the JRE on your portable hard drive
Set this as your default JRE.