將Java程序打包成Jar可執行應用,launch4j 3.2 發布
Launch4j是一個跨平臺的工具用于將Java程序打包成Jar原生Windows可執行程序。
可執行文件可以被配置搜索特定的JRE版本,或使用捆綁的JRE,它可以設置運行時選項,如初始/最大堆大小。還可以設置應用程序圖標,原生預JRE啟動畫面,和Java下載頁面為用戶提供了更好的體驗。
特性
- Launch4j wraps jars in Windows native executables and allows to run them like a regular Windows program. It's possible to wrap applications on Windows, Linux and Mac OS X!
- Also creates launchers for jars and class files without wrapping.
- Supports executable jars and dynamic classpath resolution using environment variables and wildcards.
- Doesn't extract the jar from the executable.
- Custom application icon with multiple resolutions and color depths.
- Native pre-JRE splash screen in BMP format shown until the Java application starts.
- Initial priority and single application instance features.
- Works with a bundled JRE or searches for newest Sun or IBM JRE / JDK in given version range and type (64-bit or 32-bit).
- Opens Java download page if an appropriate Java version cannot be found or a support website in case of an error.
- Supports GUI and console apps.
- Supports Windows application manifests.
- Passes command line arguments, also supports constant arguments.
- Allows to set the initial/max heap size also dynamically in percent of free memory.
- JVM options: set system properties, tweak the garbage collection...
- Runtime JVM options from an .l4j.ini file.
- Runtime command line switches to change the compiled options.
- Access to environment variables, the registry and executable file path through system properties.
- Set environment variables.
- Option to change current directory to the executable location.
- The JRE's bin directory is appended to the Path environment variable.
- Custom version information shown by Windows Explorer.
- Digital signing of the executable with sign4j.
- Supports Windows Security Features of the Windows 8 certification kit.
- GUI and command line interface.
- Build integration through an Ant task and a Maven Plugin.
- Lightweight: 31 KB!
- It's free and may be used for commercial purposes.
- Includes a sample application and Ant script that automates the build process from Java sources to native executable.
- The wrapped program works on all Windows platforms (98/Me/NT/2K/XP/Vista/7/8), Launch4j works on NT/2K/XP/Vista/7/8, Linux and Mac OS X.

發布說明: Launch4j 3.2 允許配置 32位和64位的 JRE ;改進了日志;修復了從 Ini 文件加載 JVM 參數時的問題;修復了未定義 classpath 導致程序崩潰的問題。
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!