Reputation: 2183
I'd like to export my eclipse project as a JAR from the command line, but have only done this through the Eclipse UI with File -> Export -> Java -> JAR.
Upvotes: 1
Views: 389
Reputation: 28687
The Java JDK provides the jar
command: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jar.html
For more elaborate uses, you may be well advised to consider something like Apache Ant or Maven:
Upvotes: 2