Running executables created by the Native Executable Builder and the Archive BuilderNote: 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.
* 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.
(我环境变量也搞过了,samples-solaris就是不行,不过我把编译好的classes拷贝上去,用java xxx 运行是没有问题的)(注:上面我说的Native Executable Builder 功能有一些错误!愿意接收大家的批评指正,教教我这个菜鸟!!!)