How to integrate Eclipse Portable with Java Portable?

Saudate picture Saudate · Dec 17, 2011 · Viewed 11.2k times · Source

I recently downloaded Eclipse Portable to do some Java Programming anywhere. I also downloaded Java Portable.

How can I integrate Java Portable with Eclipse Portable?

I know that on the "installed" version of these two, I need to set up the CLASSPATH, PATH and JAVA_HOME variables in order to use the Java Compiler(javac.exe)

How can I set this up on a thumb drive? How can I tell Eclipse to use my portable Java?

Please help me, and if possible please be specific and detailed procedure-wise. I am planning to deploy these applications on Windows XP/7 machines.

Any efforts to answer my question will be greatly appreciated!

Answer

Stevoisiak picture Stevoisiak · Oct 6, 2017

The following instructions use the folder /apps as an example, but any folder should work.

  1. Download and install Eclipse Portable to any folder. (64 bit or 32 bit)
  2. Download and install the Portable Java Runtime Environment
  3. Open your Eclipse settings file ../EclipsePortable/App/Eclipse/eclipse.ini
  4. Set the -vm as your portable Java installation. (Must be placed before -vmargs)

For 32 bit

 -vm
 E:/Apps/CommonFiles/Java/bin/javaw.exe

For 64 bit

 -vm
 E:/Apps/CommonFiles/Java64/bin/javaw.exe