Place files at root of JAR

Emilio Sanches :

I am coding a minecraft mod and I want to set a icon. I need to place the image file at the root of JAR file (it is what the example code says):

# A file name (in the root of the mod JAR) containing a logo for display
logoFile="examplemod.png" #optional

https://i.stack.imgur.com/Vcnuc.png

Where in my project do I place the image file? Remember, I need the image file to keep at root of JAR file.

Antoniossss :

Assuming you are using maven it will be resources.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=400603&siteId=1