简体   繁体   中英

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)

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. 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. 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)?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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