windows 我可以通过桌面上的图标运行 Java 程序吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2753371/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can I run a Java program through an icon on my desktop?
提问by WM.
as running any exe file or something..??
作为运行任何exe文件或其他东西..??
采纳答案by Scott Bennett-McLeish
You can create an executable with one of the following:
您可以使用以下之一创建可执行文件:
回答by Amber
Make an executable JAR file:
制作一个可执行的 JAR 文件:
http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html
http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html
回答by Mario Ortegón
Use Java Web Start to package and deploy your application on a web server.
使用 Java Web Start 在 Web 服务器上打包和部署您的应用程序。
During launch, It will create desktop shortcuts that can connect to a server and update your application if updates are found.
在启动期间,它会创建桌面快捷方式,可以连接到服务器并在找到更新时更新您的应用程序。
It also has other advantages, like the fact that it can ensure that you have the right virtual machine, and download the right one in case you don't
它还具有其他优点,例如它可以确保您拥有正确的虚拟机,并下载正确的虚拟机以防万一