23
votes

I wish to run Eclipse for C++ on Vista but I absolutely do not want to run the JRE installation. Is there any place where I can get a JRE in a zip that I can just dump in the Eclipse folder and have it work?

6
To clarify I don't want to install it because I don't want the browser add on. I don't want registry entries. I don't want it to modify path variables. I also don't want the updater to ever run even once. - Amaron

6 Answers

21
votes

You can run Eclipse by copying the JRE into the eclipse/jre directory (wiki documentation).

The JRE is distributed with the Java JDK (/path/jdk1.6xxx/jre). The JDK uses an installer, but you can just copy this directory from another machine, install and uninstall the JDK or whatever.

14
votes

Download the JRE offline installer, right click on it, and have 7zip/winrar/whatever unzip it.

You'll get a folder with a fully funcional JRE, but no install required :)
You might want to read this to run Eclipse with that JRE.

1
votes

The browser add on can be disabled per browser, you can copy and re-set your PATH variable and the JAVA_HOME variable, and you can disable the updater in the Java app in the Control Panel of Windows. Registry entries are generally harmless but not too hard to remove.

Also, you could just uninstall after you use it.

1
votes

The IBM Development Kit for Eclipse is exactly what you ask for. Eclipse with an JRE bundled in ready to use.

http://www.ibm.com/developerworks/java/jdk/eclipse/

(For the record it is an IBM JVM).

Registration is necessary (urgh).

0
votes

I guess you should take a look on Apache Harmony. I beleive it could be just unpacked to the standalone directory. After that Eclipse could be launched with -vm PATH_TO_JVM option. (In theory)

Hope this helps.

0
votes

No, it can not be done the way you described it. The JRE needs to be installed using the Installer. Why would you be so afraid of installing JRE on your machine? Without it, Eclipse won't work, as it is by itself a Java application and runs in a JVM.

EDIT, Pardon my ignorance. McDowell is right.