向客户端提供/导出可执行文件 [英] Provide/Export executable file to client
问题描述
由于Java是一个跨平台的环境,它并没有真正具有像EXE或任何东西的可执行文件。而是使用Java运行时运行.jar文件。例如:
C:\> java.exe MyProgram.jar
当然,一旦安装了Java运行时,一些操作系统就会为您执行此操作。
有一些程序将.JAR转换为.EXE,但我相信他们只是编译一个调用Java运行时的薄包装。
I just completed working on a client's tool, which uses Jfreechart jar, and dll and a lib file for JNI interface. Now I would like to export/ provide a executable file to client, I tried to click on java project folder and export Java>Runnable Jar file (extract required libraries into generated JAR) , a Jar file is exported with some Warnings. However, we are not able to run the file on client's machine. How can I fix this, obviously I don't want to provide complete Java project and ask client to run from and IDE. Please provide me inputs.
Since Java is a cross-platform environment, it doesn't really have "executable files" like EXEs or anything. Instead, you run your .jar file with the Java runtime. For example:
C:\>java.exe MyProgram.jar
Of course some operating systems will just do this for you once the Java runtime is installed.
There are some programs to convert .JAR to .EXE, but I believe they just compile a thin wrapper that calls into the Java runtime.
这篇关于向客户端提供/导出可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!