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
You are here
Portable Java Web Start
February 2, 2010 - 11:46am
#1
Portable Java Web Start
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
Emmm... Where do I change this variable?
There's no place like 127.0.0.1
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
javaws launcher.jnlp -Duser.home="$EXEDIR\Data"?
There's no place like 127.0.0.1
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
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
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
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:
Custom.nsh (next to the MyAppPortable.ini):
Are there any solution how to run jnlp applications via portable java?
Have the same problem ( no admin , windows 7 )