You are here

Java

19 posts / 0 new
Last post
jrwr
Offline
Last seen: 17 years 9 months ago
Joined: 2006-06-24 22:07
Java

ANy work being done on making a portable java?

this would go well with Firefox and Openoffice

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 1 year 11 months ago
Developer
Joined: 2006-05-26 12:08
Well

Johns going to be doing it soon I think when it becomes open source. But that won't be until later

your friendly neighbourhood moderator Zach Thibeau

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 52 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Sooner

Actually, a bit sooner in terms of getting it to work with OO. I should have a beta launcher out by the end of the year for people to test out that will allow a portable copy of Java to work with OpenOffice.org Portable.

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

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 1 year 11 months ago
Developer
Joined: 2006-05-26 12:08
:P

Nice I like the sounds of that

your friendly neighbourhood moderator Zach Thibeau

jrwr
Offline
Last seen: 17 years 9 months ago
Joined: 2006-06-24 22:07
cool

Maybe with some hacking FF should be able to use it too

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 52 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Possibly

Though it would require messing with registry keys that you need admin privs to change.

Maybe we can get a feature request into the FF codebase to point it to the java install.

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

cavedeamon
Offline
Last seen: 16 years 5 months ago
Joined: 2006-05-20 21:58
addon

what about an extension to point to a portable java

----
eagle scout

Technology can solve all our problems, like using a laptop for a space heater in a cold tent in the middle of winter.
----

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 52 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Nope

The Java plugin for FF gets the pointer to Java by reading the PC's registry. That's just the way it works. I'd highly doubt you can change that with an extension.

A plugin, perhaps. I'd have no idea where to start. Anybody?

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

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 week ago
Joined: 2006-01-06 21:27
Well

This category at MDC looks promising:
http://developer.mozilla.org/en/docs/Category:NPAPI
----
Ryan McCue
Life is like a sewer. What you get out of it depends on what you put into it.
(Tom Lehrer)

"If you're not part of the solution, you're part of the precipitate."

cavedeamon
Offline
Last seen: 16 years 5 months ago
Joined: 2006-05-20 21:58
Yea

Just in time for Christmas

----
eagle scout

Technology can solve all our problems, like using a laptop for a space heater in a cold tent in the middle of winter.
----

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 week ago
Joined: 2006-01-06 21:27
Oh, and two more things:
  1. Where will it be located? [drive]:\PortableApps\CommonFiles\Java\bin\javaw.exe ?
  2. How will we locate it in a script? I'm thinking environment variable. However, I was going to use GetDrive and then work from there, but you can change the location so that won't work.

----
Ryan McCue
Life is like a sewer. What you get out of it depends on what you put into it.
(Tom Lehrer)

"If you're not part of the solution, you're part of the precipitate."

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 52 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Java launcher

I'm working on a Java launcher that will allow you to launch JAR files and pack em into PAF format files.

It'll be located in PortableApps\CommonFiles\Java

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

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 1 year 11 months ago
Developer
Joined: 2006-05-26 12:08
Very Nice

I look forward to seeing this soon Blum

your friendly neighbourhood moderator Zach Thibeau

billd
Offline
Last seen: 17 years 9 months ago
Joined: 2006-12-11 14:47
So how (user interface wise)

So how (user interface wise) would you invoke a jar file with this launcher? Just curious.

Getting apps to find Java is the only difficulty. I just copied the JDK off of my PC to my flash drive and it works fine. I even deleted Java from my PC to make sure. I don't think Java itself has any dependencies on paths other than its own which it seems to be able to figure out relative to the location of the java/javaw command that is invoked.

I got Eclipse to run but I invoke it a little funky with Pstart. Here are the eclipse.exe command line parameters I used for portability:

-refresh -data ..\..\billd\workspace -vm ..\Java\bin\javaw

The paths are relative to the Eclipse directory, where the standard Windows Eclipse launcher is. The "-refresh" tells it to refresh its idea of what is in the workspace. I do this since drive letters can change. The "-data" option points it to the correct workspace. The "-vm" option points it to Java. The Eclipse configuration GUI's don't seem to like relative paths but the command line seems to work just fine with them.

I suppose the workspace thing isn't strictly necessary but then I'd have to manually change it every time my drive letter changed.

I ran it at home where my flash drive is on G: and at work where it's on E:. I won't be able to try it at school until Thursday night.

Startup is a little slower than from a hard drive but using it feels about the same. Of course, I've only played with small projects on it so far. A big one might get more of a speed penalty.

It's too bad Firefox doesn't have a command line option or environment variable to specify the location of the Java runtime. I don't know about OpenOffice.

Also, I wanted to say thank you John for all of your hard work. I've been using PortableApps for quite a while now but just joined the forum today.

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 52 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Simple JARs

This would be for self-contained Java apps... say one JAR file or more than one in a single directory. Big complex apps like eclipse will require custom command lines still.

And you're welcome Smile

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

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 week ago
Joined: 2006-01-06 21:27
However

I'm simply using the executable which gets the VM's path from a command line option.
Would I just -vm ..\..\..\CommonFiles\Java?
Also, with the new extractors, will PAM send via a command line option whether Java is installed portably?
----
Ryan McCue
Life is like a sewer. What you get out of it depends on what you put into it.
(Tom Lehrer)

"If you're not part of the solution, you're part of the precipitate."

jrwr
Offline
Last seen: 17 years 9 months ago
Joined: 2006-06-24 22:07
I posted on sun.com

and here is what i got back
(URL = http://forum.java.sun.com/thread.jspa?forumID=32&threadID=5113910 )
"
b]Disclaimer:[/b] I do work for the company which product is mentioned below.

The Sun JRE is indeed free to redsitribute as long as your apps run on conventional PCs and servers. But if you find the JRE footprint too big, check out our Java SE implementation, [url=http://www.excelsior-usa.com/jet.html][u]Excelsior JET[/u][/url]. The latest version adds disk footprint reduction to the feature list.

We would be most interested in hearing from people (interested in) using Java in connection with something like U3 Smart Drive, Ceedo Personal or portableapps.com. My email address is on the Contact Us page of the above referenced Web site.

Dmitry Leskov
Excelsior LLC
"

jrwr
Offline
Last seen: 17 years 9 months ago
Joined: 2006-06-24 22:07
2007

well im kinda diing this post up a bit, its 2007 any news yet? im willing to test!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 week ago
Joined: 2006-01-06 21:27
Yes, actually

John is getting a downloads server set up for non-open-source downloads, which means he will be able to get it done.
----
Ryan McCue
Santa: Ho Ho Ho!
Kim: Yes, thank you Santa, I am.
(Kath and Kim)

"If you're not part of the solution, you're part of the precipitate."

Topic locked