java 把我的java项目变成可执行文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15816737/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 20:57:30  来源:igfitidea点击:

Turn my java project into executable file

javaexecutable

提问by sabsab

I made a Java project and I just want to make it into an executable file to get a bounce, I found some answers related in this website with some programs. I tried using the programs but they did not work. PLEASE help me with the most efficient way to turn my Java project which consists of four classes into an executable file.

我做了一个 Java 项目,我只是想把它做成一个可执行文件以获得反弹,我在这个网站上找到了一些与一些程序相关的答案。我尝试使用这些程序,但它们不起作用。请帮助我以最有效的方式将包含四个类的 Java 项目转换为可执行文件。

采纳答案by MustSeeMelons

Export -> Runnable jar, that's it.

导出 -> Runnable jar,就是这样。

回答by Rob Watts

In Java you make an executable .jar file, not an exe. Here's a tutorialto help with that:

在 Java 中,您创建一个可执行的 .jar 文件,而不是一个 exe。这是一个帮助解决这个问题的教程