当前位置: 技术问答>java相关
谁用过jbuilder7-->Wizards-->Native Executable Builder 功能!?
来源: 互联网 发布时间:2015-08-17
本文导语: Native Executable Builder 该功能可以为java程序生成一些可执行程序直接面向操作系统, 没有必要再安装java 虚拟机就可以运行java程序了! (它会把相应的classes放进去,所以对发布java应用程序是非常的方便,比如说它...
Native Executable Builder 该功能可以为java程序生成一些可执行程序直接面向操作系统, 没有必要再安装java 虚拟机就可以运行java程序了!
(它会把相应的classes放进去,所以对发布java应用程序是非常的方便,比如说它可以生成 samples.exe, 那就只要把这个拷贝给用户,用户只要双击就可以运行, )
还有它可以生成 for linux 、solaris、 macos等操作系统!的运行程序!
但是问题就出现了: for window的没有问题,运行很正常!
但是我把生成for solaris的 samples-solaris 放到solaris上好象无法运行,也不知为什么?(可以确定的一点是本项功能一定没有问题, 但是问题出在哪里呢???)
请大家研究研究一下!毕竟这项功能很有用,对发布程序给用户!
(它会把相应的classes放进去,所以对发布java应用程序是非常的方便,比如说它可以生成 samples.exe, 那就只要把这个拷贝给用户,用户只要双击就可以运行, )
还有它可以生成 for linux 、solaris、 macos等操作系统!的运行程序!
但是问题就出现了: for window的没有问题,运行很正常!
但是我把生成for solaris的 samples-solaris 放到solaris上好象无法运行,也不知为什么?(可以确定的一点是本项功能一定没有问题, 但是问题出在哪里呢???)
请大家研究研究一下!毕竟这项功能很有用,对发布程序给用户!
|
Running executables created by the Native Executable Builder and the Archive Builder
Note: The JDK is not bundled with the JAR file, so the JDK must be installed on the user's computer in order for the executable to run. The platform-specific executable file looks for the installed JDK in the following location:
* Windows: Registry.
* Linux/Solaris: JAVA_HOME environment variable and the user's path.
* Mac OS X: pre-defined location for the JDK.
If you create the executable on the Windows platform and move it to other platforms, you may need to change the permissions to make it executable.
Choosing the Mac OS X option creates an application that is launchable only from a command line. In order to create an application that is launchable from the Finder, Mac users need to create an Application bundle. Please refer to Apple's Mac OS X Developer documentation with regards to bundles and application packaging.
Note: The JDK is not bundled with the JAR file, so the JDK must be installed on the user's computer in order for the executable to run. The platform-specific executable file looks for the installed JDK in the following location:
* Windows: Registry.
* Linux/Solaris: JAVA_HOME environment variable and the user's path.
* Mac OS X: pre-defined location for the JDK.
If you create the executable on the Windows platform and move it to other platforms, you may need to change the permissions to make it executable.
Choosing the Mac OS X option creates an application that is launchable only from a command line. In order to create an application that is launchable from the Finder, Mac users need to create an Application bundle. Please refer to Apple's Mac OS X Developer documentation with regards to bundles and application packaging.
|
说过n次了,那个exe其实还是个jar,只是borland给加了个壳
|
都是一样的,你把扩展名改成.zip都可以用winzip等打开
感觉这个功能没什么用,用了后反而是造成许多麻烦
感觉这个功能没什么用,用了后反而是造成许多麻烦
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。