You are here

Portable Java Web Start

11 posts / 0 new
Last post
Bobert
Bobert's picture
Offline
Last seen: 14 years 9 months ago
Joined: 2008-06-10 20:43
Portable Java Web Start

I have a .jnlp file that I want to make portable. It creates and uses a folder of data in the user's home folder, and also uses the java web start cache. Is there some way to use java portable to have it store both of these things on the flash drive?
Thanks

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
-Duser.home

For Data, see -Duser.home. For the JWS cache, I'm not sure. If you can find a variable which is what it uses (like user.home or java.util.prefs or anything like those), and then put the command line argument -Dwhatever.it.is="$EXEDIR\Data\Thingy".

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Bobert
Bobert's picture
Offline
Last seen: 14 years 9 months ago
Joined: 2008-06-10 20:43
...

Emmm... Where do I change this variable?

There's no place like 127.0.0.1

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
In the command line

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Bobert
Bobert's picture
Offline
Last seen: 14 years 9 months ago
Joined: 2008-06-10 20:43
As in

javaws launcher.jnlp -Duser.home="$EXEDIR\Data"?

There's no place like 127.0.0.1

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
Yep

That's it. You should put the -D parameters before launcher.jnlp though. Also I'm not absolutely certain on the format; running javaws to see what it says I think you will need to do -JDuser.home="$EXEDIR\Data".

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Bobert
Bobert's picture
Offline
Last seen: 14 years 9 months ago
Joined: 2008-06-10 20:43
What about this...

I found this on the following page:

javaws.cfg.cache.dir=C:/path/to/cache to change the cache dir

http://lopica.sourceforge.net/faq.html#changecache

Is there some way I can do this, possibly with a paramater?

There's no place like 127.0.0.1

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
-JD

Try -JDjavaws.cfg.cache.dir="$EXEDIR\Data". It may work.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Wernight
Offline
Last seen: 11 years 1 month ago
Joined: 2008-02-12 22:20
PortableApps Launcher doesn't

PortableApps Launcher doesn't correctly support javaws. It's Java.nsh only expects java.exe or javaw.exe, not javaws.exe.

I don't know any trivial solution at the moment. Try:

MyAppPortable.ini:

[Launch]
ProgramExecutable=java.exe

[Activate]
Java=require

Custom.nsh (next to the MyAppPortable.ini):

${SegmentFile}

${SegmentPre}
	StrCpy $ProgramExecutable "javaws.exe"
!macroend
zenoni
Offline
Last seen: 10 years 5 months ago
Joined: 2014-06-19 01:31
Are there any solution how to

Are there any solution how to run jnlp applications via portable java?

nikto
Offline
Last seen: 6 years 3 months ago
Joined: 2017-03-30 05:48
still no solution ?

Have the same problem ( no admin , windows 7 )

Log in or register to post comments