How to run the jar archive with the working classes inside without manifest.mf via the windows console?
1 answer
Taken from English WITH :
java -cp MyJar.jar com.mycomp.MainClass /home/myhome/datasource.properties /home/myhome/input.txt MyJar.jar - the actual name of your JAR file
com.mycomp.MainClass - the full name of your class (with the package)
/home/myhome/datasource.properties /home/myhome/input.txt - parameters that will be passed to the main(String ... args) method
|
.jarfile to a specific folder, and then use the console toMain.classonly here in the console