So I have inherited a project with org/projectname/Client.class
containing the main class, and tons of other .class files in directories like org/projectname/
and org/projectname/backend/
(and some libraries in lib/
, but I assume those are already compiled into the .class files and can be ignored).
I want to make a .jar executable that when run like java -jar Client.jar
, starts off with Client.java
and has all the classes/libraries inside that it needs to run, from the command line.
What's the easiest way to do this?