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
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".
Emmm... Where do I change this variable?
javaws launcher.jnlp -Duser.home="$EXEDIR\Data"?
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 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?
Try -JDjavaws.cfg.cache.dir="$EXEDIR\Data". It may work.
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
Are there any solution how to run jnlp applications via portable java?
Have the same problem ( no admin , windows 7 )