Reputation: 1148
I have a java application which runs in CMD and I am running it in our traditional way like :
javac test.java
java test
I have added some libraries also in my root as a folder, those are inside a folder named 'org', all dependencies are inside that. I need to package this application and make it work on client machine. How can I do that? I do not use any IDEs.
Upvotes: 4
Views: 114
Reputation: 9
Create Application Structure as follows
MyFiles - ABC.class (File) - images (Folder) - musics (Folder)
get inside of Myfiles from MS DOS
jar cvf MyFiles.jar ABC.class images musics //jar cvf TicTacToe.jar *
Upvotes: 0
Reputation: 51323
There are many options that you have, e.g.
There is also a comparision of the most used tools available on rebellabs. Maybe this helps to make a decision.
comparision sheet from rebellabs
Upvotes: 1
Reputation: 806
This a manual process without any kind of maven or ant support. However those tools will make your life easier in the long run.
Upvotes: 2
Reputation: 240860
generally there is always a build manager associated with a project, for example maven or ant which abstracts out the complexity of managing dependency and packaging
I would mavenize project
Upvotes: 3