Java 将加工草图转化为可执行文件

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

Convert processing sketch into executable

javajarexportprocessingexe

提问by Yaxlat

I am using processing, and cannot figure out how to turn my processing sketch into an .exe file. So far nothing has worked.

我正在使用处理,但无法弄清楚如何将我的处理草图转换为 .exe 文件。到目前为止,一切都没有奏效。

I have a lot of images in different folders within my processing sketch, and I cannot seem to figure out the steps I need to take to end up with an executable and a folder which it is in (the type you might download from the internet)

我的处理草图中的不同文件夹中有很多图像,我似乎无法弄清楚最终需要执行哪些步骤才能生成可执行文件和它所在的文件夹(您可能会从 Internet 下载的类型)

回答by Jose Gonzalez

You can do this two ways:

您可以通过两种方式执行此操作:

From your Processing editor, by clicking the "Export button", then you have the options of creating an "Embed Java" or a "Full Screen (Present mode)". Bought of this options create a folder containing the .exe file.

在处理编辑器中,通过单击“导出按钮”,您可以选择创建“嵌入 Java”或“全屏(演示模式)”。购买此选项后会创建一个包含 .exe 文件的文件夹。

Exporting in Processing

加工出口

this creates a new folder inside your sketch folder.

这会在您的草图文件夹中创建一个新文件夹。

Your sketch folder

你的草图文件夹

here you can find the executable file.

在这里你可以找到可执行文件。

The executable file

可执行文件

The other way would be by having your project mix with java in some other IDE like Eclipse or Intelij. Follow this tutorial on how to do that http://www.learningprocessing.com/tutorials/processing-in-eclipse/then you can export your work like any java aplication, if you decide to work with eclipse here it's how to do so http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jst.j2ee.doc.user%2Ftopics%2Ftjexpapp.html

另一种方法是让您的项目在其他 IDE(如 Eclipse 或 Intelij)中与 java 混合。按照本教程来了解如何做到这一点http://www.learningprocessing.com/tutorials/processing-in-eclipse/然后你可以像任何 Java 应用程序一样导出你的工作,如果你决定在这里使用 eclipse,它是如何这样做的http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jst.j2ee.doc.user%2Ftopics%2Ftjexpapp.html

Hope this could be helpful. Regards Jose

希望这会有所帮助。问候何塞