2019-08-15

Run a class inside a jar.



How to run a class from Jar which is not the Main-Class in its Manifest file


How to run a class from Jar which is not the Main-Class in its Manifest file





You can create your jar without Main-Class in its Manifest file. Then :
java -cp MyJar.jar com.mycomp.myproj.dir2.MainClass2 /home/myhome/datasource.properties /home/myhome/input.txt




No comments:

Google Referrals