I have developed a Java application with Eclipse. I have also exported in the .jar
format. It works great, but there are some issues;
So at the end, I want to transform the .jar
file, into the native format for the other OS, such as .exe
, .app
and .deb
with a specific icon. How Can I do this ?
FYI: In simple terms, the difference between a JAR file and a Runnable JAR is that while a JAR file is a Java application which requires a command line to run, a runnable JAR file can be directly executed by double clicking it.
1) The icon is the one of the JVM and can't modify
2) If the PC where the application runs, it will not have the Java SDK, the application can't start.
There is a way to Embed a JRE in a executable. This way you can create native build for target systems which will 1) allow you to change the icon 2) make app run on PC where JavaVM is not installed.
I recommend using Avian which is free: http://oss.readytalk.com/avian/
Also you might be interested in this thread: Embed a JRE in a Windows executable?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With