Creating a batch file from an Eclipse project

How can I create a runtime package of some kind - an all-in-one jar with the specified main class, Mac .appor similar - from the Eclipse Java project? I would like to get all the necessary banks, etc., without making the batch file itself.

+3
source share
1 answer

Right-click the project in Eclipse and select Export . Select Java-> Runnable JAR File .

Then you can select the specific Eclipse launch configuration on which the export will be based (i.e. the main class and the class path used to run it), extract or package the necessary libraries, and create an ANT script (so you can create a JAR file outside Eclipse).

+3
source

Source: https://habr.com/ru/post/1744240/


All Articles