Hello, i want to carry all my useful java-applications on my usb flash drive. But there is not everywhere java virtual machine is installed. Is there any ability to install jvm on flash drive? Of course, for some class of OS (e.g. Windows-based).
Printable View
Hello, i want to carry all my useful java-applications on my usb flash drive. But there is not everywhere java virtual machine is installed. Is there any ability to install jvm on flash drive? Of course, for some class of OS (e.g. Windows-based).
Thanks a lot, i guess it also works for linux-based systems? Maybe it possible to create *.bat or *.sh file for each apps, in this way i don't need to link the bin directory with the environment variable PATH?
e.g.:
./java.exe -jar myapp.jar
For windows systems, the site "PortableApps.com" has an application that will launch a java application. Can't tell you all the details. May require a .jar file rather than .class, but I can run JEDIT on a windows system with it from a flash drive. Open source, free.
Yeah, I use the PortableApps version on my flash drive (works great).
I have it setup as one of the JVMs I use in Eclipse (which is also on my flash drive). This way, if I'm on a different computer I can still use the current JRE. I also copied src.zip to the directory and linked it in Eclipse, so I can browse the source code and have the JavaDocs with me as well.
Also, PortableApps has Java Portable Launcher, which allows you to easily run jar files. The user.home and user.dir System properties reflect the location of the launcher (not the jar) so that your settings (if any are saved by the jar) are portable as well.
Links:
Java Portable
Java Portable Launcher