New Platform 12.0.5. Download or Buy on Drive
Over 300 free and legal portable apps including Xonotic (Mar 1, 2015) needs your help: Please donate today

Portable JDK or JRE/JVM please

porta-nerd - April 29, 2008 - 8:09pm
Share on Facebook

It would be very nice to have a portable version of the Java Development Kit or the Java Runtime Environment/Java Virtual Machine made. Then we would finally have a solution for all of these Java problems (it would also open new doors in app development, like some I am exploring).

The source code for the JDK/JRE/JVM (i think the JDK) has been released. To my knowledge it is called Open JDK and is a developer/open source project to improve Sun's Java binaries.

Source Repositories:
Source Snapshots:

Thank You.

( categories: )

No Windows Binaries

As has been stated, we need Windows binaries. There aren't any.

Sometimes, the impossible can become possible, if you're awesome!


What is it with these binaries?

The guy who acts like he knows what he's talking about.

binaries = compiled files

binaries = compiled files

The developer formerly known as ZGitRDun8705


And we need those, why?

The guy who acts like he knows what he's talking about.

so we can actually use the

so we can actually use the program.

The developer formerly known as ZGitRDun8705


We need fully open source java runtime environment (JRE) binaries to make a portable java. Why they need to be open source has been discussed many times before. The binaries themselves are needed to run java programs.

Currently there are no fully open-source binaries available. OpenJDK includes several of what they called "plugs", which consist of non-open-source binary downloads during their build process for pieces which do not yet exist in open source form. This means that JRE/JDK binaries built from OpenJDK are not fully open source, cannot be hosted on sourceforge, etc.

formerly rayven01

There are binaries, they are

There are binaries, they are just not released under an Open Source license, and can't be distributed on SourceForge. (Lots of stuff comes back to "we can't distribute it on SourceForge.")

The fact that Sun gives away binaries to Java does make them easy to get, but we can't redistribute them without a license.

The fact that the generally available Java binaries end up making all sorts of changes to the registry means that they aren't terribly portable.

Other than that, there's nothing wrong with Java. Sticking out tongue

The "portablized" java that John set up for OOo does a fair job of letting people take a Java with them on their portable device, but it doesn't solve all the problems of having a portable java.

We're back to "here's the best we can do under the circumstances, and in the current state of things" -- and it doesn't look much like a truly portable Java.


GPL v2 = OSL ?

Sun claims that the GPL v2 is an open source license and provides this link:
I am about to read it.

[edit] link is old. new link:
I also forgot to read the Classpath Exception and the Assembly Exception.
I will read all three of these documents now.

[edit] I have only read the GPL v3 and was looking to find a license called "Open Source License" and found these instead:

[edit] Classpath Exception is a good thing. Contents:
Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination.

As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.

if it still relevant

i know it a very old post (but recently it pop up)
there is a version of portable openjdk

no but you could build the source

I was just poking around on #openjdk and you should be able to build the source. Binaries may become available when Java 7 is released. However, nothing prevents us from building our own. Don't you have to do that anyways to get some of your fixes to work?

Not really. The hard part is

Not really. The hard part is distributing binaries with your software. Since you can get the binaries for free, there's not a huge incentive to make your own, even if that might mean you can distribute it.

It might be easier to portablize things if more programs didn't insist on reading parameters from the registry, but that's the program's fault, not the JRE. The JRE can put things wherever it wants and read parameters from anywhere the program tells it.


private JRE uses no registry

"Private vs. public JRE - Installing the JDK installs a private Java SE Runtime Environment (JRE) (...) It has no registry settings and is contained entirely in a jre directory (typically at C:\Program Files\jdk1.6.0\jre) whose location is known only to the JDK. (...)"

Oh yeah! I forgot about that.

Doesn't it have any dependencies at all? It would be astonishing if Sun did not want people to know that they could easily take Java with them when they travel.

little something

There is a zip file with JDK7u15 (including JRE) at: has a batch file in it named jpath.bat that you can run to set environment variables at the command line.

Needs to be looked at again?

The IcedTea project is completely open source, but I'm not sure about it containing any sort of windows binaries. It also has passed compatibility tests for Java 6. This plus PortableNetbeans would be great.

I already use it

I downloaded Java Portablizer from the link here: Then I started to install it to my USB from my home computer (it has the latest JRE) and it "portabilized" JRE successfully. Now I use all the macroses I used to in my OOo 2.4.1 - I add JP's folder in "Use Java" option.

May the FOSS be with you!

That works fine for me. I use

That works fine for me. I use it with frostwire portable sometimes and it does the job ^_^

 iLike Macs, iPwn, However you put it... Apple is better ^_^ 
"Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world..."


Perhaps a reminder is in order: there has been a recent upgrade to Java. You might want to update Java on your c: drive, then run the Java Portabilizer again.


I use this private jre for

I use this private jre for eclipse development on a usbstick. The only thing I do is to set PATH and perhaps JAVA_HOME env-vars. there are no registry settings needed.
the jdk has some registry entries. but as i know this settings are only for referenz to find the jdk installation quickly. you could delete the registry entrie JavaSoft and use the jdk only with env-vars.