简体   繁体   中英

How to build a .jar file

Please note I do not mean building a .jar file using an IDE such as eclipse.

What I'd like to accomplish is creating a .jar using my program. For example the user enters some information and then click "Build" and a .jar file would be built and would have that information that the user enters.

I was thinking about maybe saving a file with a .java extension and writing lines of code to that file and then use cmd to build a .jar file.

That's not really the solution I want to use as I'm sure there is a better way to do it.

Take a look at
https://github.com/Quillion/Engine/blob/master/jarIt.bat
This is what I use to pack my jars. You can also learn more about it by reading documentation

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