简体   繁体   English

从Eclipse将项目导出为文件夹

[英]Export Project from Eclipse As Folder

I have a game that I have finished and need to export now. 我有一个已经完成的游戏,现在需要导出。 I want people to be able to make mods for it, so therefore, I need a folder with all the classes that my game can find and run from that folder. 我希望人们能够为此制作模块,因此,我需要一个文件夹,其中包含我的游戏可以从中找到并运行的所有类。

I know how to export it into an Archive Folder, but when you do that, you can't actually run it and play it. 我知道如何将其导出到存档文件夹中,但是当您执行此操作时,您实际上无法运行并播放它。

I was thinking it could work like Minecraft does, where it creates a folder on your computer, that has the classes in it, and when you start up Minecraft, it finds this folder and uses it to run. 我以为它可以像Minecraft那样工作,它在计算机上创建一个文件夹,其中包含类,并且在启动Minecraft时,它将找到该文件夹​​并使用它来运行。

You can export it as a Runnable Jar file .With that you can run and play it , and when you open the jar with an archive manager you can see the classes. 您可以将其导出为Runnable Jar文件。有了它,您就可以运行和播放它,并在使用存档管理器打开jar时可以看到类。

In eclipse right click and select export , Under 'Java' there is an option for Runnable Jar. 在Eclipse中,右键单击并选择export,在“ Java”下,有一个Runnable Jar的选项。 Select your Launch class and the export destination. 选择您的启动类和导出目的地。

I hope this helped you. 希望这对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM