This is a solution I found to make Jajuk portable across Windows platforms (sorry no Linux) to be carried on a flash drive or an external hard disk, including (if desired) a music collection.
The utility that I used is JavaExe (version 3.0.2, freeware). The directory listing of Jajuk in the flash drive is as follows ("h" is the drive assigned to my flash drive):
h:\Jajuk\ jajuk.exe, jajuk.properties from JavaExe*
h:\Jajuk\bin\ jajuk jars (no change)
h:\Jajuk\configuration\ configuration placed here for portability
h:\Jajuk\dist-files\ jajuk dist files (nochange)
h:\Jajuk\jre\ Java JRE placed here for portability*
h:\Jajuk\lib\ jajuk lib files (no change)
h:\Jajuk\mplayer\ jajuk mplayer config (no change)
h:\Jajuk\Music\ music files placed here for portability
* as described in the JavaExe documentation
The jajuk.properties file is:
JREversion =1.6
PersonalClasspath =.\bin
MainArgs =-notest
MainClass =org.jajuk.Main
PersonalOptions =-Xms20M -Xmx512M -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10
RunType =0
ClassDirectory =.\lib
ResourceDirectory =.\bin
PathJRE =.\jre
The only problem with this that I have found so far is that when closing Jajuk there still seems to be files opened on the drive so that it is not possible to remove the drive without a shutdown of the machine.
Have a look and if appropriate, include this in the documentation.
--
tig