You are here

Portable JDK or JRE/JVM please

20 posts / 0 new
Last post
porta-nerd
Offline
Last seen: 15 years 10 months ago
Joined: 2008-04-27 11:12
Portable JDK or JRE/JVM please

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.

Home: http://openjdk.java.net/
Source Repositories: http://hg.openjdk.java.net/
Source Snapshots: http://download.java.net/jdk6/6u3/promoted/b05/index.html

Thank You.

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 5 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
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!

Stevoisiak
Stevoisiak's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2008-02-05 11:22
Binary?

What is it with these binaries?

Simplifying daily life through technology

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 2 months ago
Developer
Joined: 2006-12-06 18:07
binaries = compiled files

binaries = compiled files

The developer formerly known as ZGitRDun8705

Stevoisiak
Stevoisiak's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2008-02-05 11:22
???

And we need those, why?

Simplifying daily life through technology

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 2 months ago
Developer
Joined: 2006-12-06 18:07
so we can actually use the

so we can actually use the program.

The developer formerly known as ZGitRDun8705

Shawn Faucher
Shawn Faucher's picture
Offline
Last seen: 14 years 7 months ago
Developer
Joined: 2007-10-23 22:14
Binaries

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

rab040ma
Offline
Last seen: 4 months 3 weeks ago
Joined: 2007-08-27 13:35
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. Blum

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.

MC

porta-nerd
Offline
Last seen: 15 years 10 months ago
Joined: 2008-04-27 11:12
GPL v2 = OSL ?

Sun claims that the GPL v2 is an open source license and provides this link:
http://opensource.org/licenses/gpl-license.php
I am about to read it.

[edit] link is old. new link: http://opensource.org/licenses/gpl-3.0.html
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.

tal
Offline
Last seen: 12 months 20 min ago
Developer
Joined: 2009-08-07 07:34
if it still relevant

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

xenoterracide
Offline
Last seen: 14 years 2 months ago
Joined: 2008-02-05 19:21
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?

rab040ma
Offline
Last seen: 4 months 3 weeks ago
Joined: 2007-08-27 13:35
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.

MC

flybyray
Offline
Last seen: 12 years 8 months ago
Joined: 2010-03-27 08:12
private JRE uses no registry

http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html

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

crux
Offline
Last seen: 3 years 4 months ago
Joined: 2008-06-13 18:10
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.

staticchaos
Offline
Last seen: 10 years 1 month ago
Joined: 2013-03-02 18:47
little something

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

Lockblade
Offline
Last seen: 15 years 8 months ago
Joined: 2008-07-08 08:16
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.

George Yves
Offline
Last seen: 9 years 9 months ago
Joined: 2008-04-21 08:37
I already use it

I downloaded Java Portablizer from the link here: https://portableapps.com/support/openoffice_portable#java 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!

Bensawsome
Offline
Last seen: 2 years 1 month ago
Joined: 2006-04-22 19:27
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..."

rab040ma
Offline
Last seen: 4 months 3 weeks ago
Joined: 2007-08-27 13:35
Update

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.

MC

flybyray
Offline
Last seen: 12 years 8 months ago
Joined: 2010-03-27 08:12
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.

Log in or register to post comments