I have created a java application run by main. My development is done by Eclipse on PC and I would like to run it on linux scheduled by cronjob. The application has dependencies. Some classes are self-created. Some are external jars. What is the most convenient way to compile it to include all dependencies and put it on the linux?
Thanks
java -jar yourjarfile.jarWhile exporting your project as jar, you can specify the java file that contains your main method and it will automatically pack all your dependencies into that jar file. While exporting you will see certain options. Choose the ones that are best for you.