You are here

portablizing java apps

7 posts / 0 new
Last post
Travis Carrico
Offline
Last seen: 16 years 5 months ago
Developer
Joined: 2006-10-22 00:30
portablizing java apps

so can java apps be made PortableApps or not. there are portable java apps on here, so how is it done? Angry IP Scanner is switching to Java so i'm just hoping i can support it on here still.

rab040ma
Offline
Last seen: 10 months 1 week ago
Joined: 2007-08-27 13:35
It depends on how the java

It depends on how the java app is written.

I think it is Firefox that insists on only running a JVM if it can read certain settings from the registry. That's not easy, nor very clean, to hack for a portable launcher.

On the other hand, I've done several that will run with the Java Portabilizer from OOo Portable.

You could look at one of the launchers such as Babiloo Portable to see how I do it.

Frequently if the java app has an .exe file for Windows users, it is just a launcher. So replacing that launcher with an NSIS launcher is not a huge stretch.

Frequently java apps put a settings file in %APPDATA%, but that can be overridden (at least the Java default can) by using -Duser.home=[some other folder] on the javaw command line. If the app itself puts its settings in another location, there might be other stuff to do.

Let me know if you have other questions.

MC

BrianAll
Offline
Last seen: 6 years 10 months ago
Joined: 2008-02-13 13:44
PortableApps\CommonFiles\Java

Yes, Java apps can be made portable. Heck, Openoffice.org is written in java. Don't worry.

Use Java Portablizer 1.1 here:
https://portableapps.com/support/openoffice_portable#java

It is used for several Java apps like Frostwire and OpenOffice.org Portable, and will copy the local installation of java to *:\PortableApps\CommonFiles\Java (you need JRE installed on your computer for it to work).

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 10 months 1 week ago
Joined: 2006-11-18 10:26
Open Office is written in

Open Office is written in C++

The "Wizards" in OO are written in Java.

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

BrianAll
Offline
Last seen: 6 years 10 months ago
Joined: 2008-02-13 13:44
sorry,

my mistake. It does require java though, that's why the portablizer is in its support page.

digitxp
digitxp's picture
Offline
Last seen: 13 years 7 months ago
Joined: 2007-11-03 18:33
Yeah, pretty much

John was on the IRC channel the other day(faints) He told us ('cuz patrick asked), he said it was private info :(.
Contact on the IRC channel.

Insert original signature here with Greasemonkey Script.

Patrick Patience
Offline
Last seen: 1 month 2 days ago
DeveloperModerator
Joined: 2007-02-20 19:26
Yea

If Travis wants to know, I say it's best he asks John, cause I don't know if John minds me telling some of the long-time developers.

Log in or register to post comments