Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Software on USB Key

Tags:

java

usb

I wrote a Java software. Now I want to copy it on a USB key and make it able to run in a stand-alone way on computers that probably don't have JVM. Is this possible?

like image 457
user1663179 Avatar asked Sep 11 '12 14:09

user1663179


2 Answers

Sure there is. Don't listen to the spoil sports. launch4j lets you bundle your executable jar, any dependency jars, and even a JRE into an executable file.

There is, unfortunately, no way to make one cross-platform solution, because JRE implementations themselves are not cross-platform.

like image 182
Chris Bode Avatar answered Sep 28 '22 02:09

Chris Bode


You could try a Java to EXE program, like Exelsior JET.

like image 24
MrLore Avatar answered Sep 28 '22 02:09

MrLore