问题
I developed a system using jdk 6. then i want to deploy that system to all kind of users(windows, linux). and also i want to create . exe file to install inside the client machine. this process should check whether there exists java(compatible version) inside the client machine. if there is not java inside the machine then installation process should provides facility to install it.and also software used to do that should be freely available. thanks in advance.
回答1:
Please try using NSIS (http://nsis.sourceforge.net/Main_Page). Basically you will need to write a NSIS script to do the following
- Check if JAVA exists. [Depending on 32 or 64 bit machine you need to check different node]
- Get the java path
- Run the command java -jar XXXX
There are many sample scripts available on NSIS site. Let me know if you need more help. I will send you sample script.
回答2:
there are few tools available for this. google for "JarToExe", "advanceInstaller".
REF: Convert Jar file to EXE executable
来源:https://stackoverflow.com/questions/15377734/how-can-i-make-an-exe-file-from-jar-file