use [cfe] to set Entry Point, without editing or creating manifest file.
jar cfev filename.jar package.ClassName *.class audio image
http://download.oracle.com/javase/tutorial/deployment/jar/index.html
Executable JAR Files
On Microsoft Windows systems, the Java 2 Runtime Environment's installation program will register a default association for JAR files so that double-clicking a JAR file on the desktop will automatically run it with javaw -jar. Dependent extensions bundled with the application will also be loaded automatically. This feature makes the end-user runtime environment easier to use on Microsoft Windows systems.
Không có nhận xét nào:
Đăng nhận xét