简体   繁体   English

构造一个罐子?

[英]Structuring a jar?

NOTE: yes, minecraft has a specific coder pack, but it doesn't work for mac or linux (something to do with the python script portability) 注意:是的,Minecraft有一个特定的编码器包,但不适用于Mac或Linux(与python脚本的可移植性有关)

While attempting to mod the main java jar file (minecraft.jar) i noticed it has an unusual structure, which im unsure on how to build. 在尝试修改主Java jar文件(minecraft.jar)时,我注意到它具有异常的结构,无法确定如何构建。 It contains all the objects (or the classes which are frequently called) at the top of the [name for structure of jar], and these, when decompiled, didnt belong to any packages. 它包含[jar的结构名称]顶部的所有对象(或经常调用的类),并且在反编译时,这些对象不属于任何包。 Whereas the files which were executed did belong to packages. 而执行的文件确实属于软件包。

so my question is, how do i structure a jar file like this myself, with an IDE (eclipse/intelliJ)? 所以我的问题是,我如何用IDE(eclipse / intelliJ)构造一个像我这样的jar文件?

我认为您需要做的就是在默认包中创建一些类(.java文件中没有package声明)。

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

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