Packaging Java applications without an IDE

I have a java application that works in CMD, and I run it in our traditional way, for example:

javac test.java
java test

I added some libraries to my root as a folder, they are inside a folder called "org", all the dependencies are inside it. I need to pack this application and make it work on the client machine. How can i do this? I do not use any IDEs.

+4
source share
4 answers

usually there is always a build manager associated with the project, for example maven or ant, which abstracts the complexity of dependency and packaging management

I would describe the project

+3
source

maven ant. .

+2

, ,

There is also a comparison of the most used tools available on rebellabs. Perhaps this helps to make a decision.

comparison sheet from rebellabs

Image from Zeroturnaround.com (Rebellabs)

+1
source
  • Create the application structure as follows

    MyFiles - ABC.class (File) - Images (folder) - Music (folder)

  • login to Myfiles from MS DOS

    jar cvf MyFiles.jar Images ABC.class // jar cvf TicTacToe.jar *

0
source

All Articles