24

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?

Lii
  • 11,553
  • 8
  • 64
  • 88
Amaron
  • 647
  • 1
  • 6
  • 13
  • 1
    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 Apr 25 '09 at 22:02

6 Answers6

21

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.

Lii
  • 11,553
  • 8
  • 64
  • 88
McDowell
  • 107,573
  • 31
  • 204
  • 267
14

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.

Lii
  • 11,553
  • 8
  • 64
  • 88
WhyNotHugo
  • 9,423
  • 6
  • 62
  • 70
1

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.

Kai
  • 3,997
  • 4
  • 30
  • 36
  • Sadly uninstalling the JRE does not remove the plugins. This has worked for the most part but I'm still trying to figure out where it hid the IE plugin so that I might delete it. – Amaron Apr 25 '09 at 23:46
1

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).

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
0

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.

Peter Perháč
  • 20,434
  • 21
  • 120
  • 152
  • 3
    Plenty of apps redistribute the JRE. You can just copy it from machine to machine. See the jre/README.txt file in the JDK for more. – McDowell Apr 25 '09 at 22:43
0

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.

Artyom Sokolov
  • 2,385
  • 3
  • 23
  • 34
  • Just a note: Apache Harmony was officially retired in November 2011, so it's probably no longer a good idea to use it. – sleske Jan 19 '12 at 16:46