Directly executed with the command
When you export a specified class, direct running jar package performs the specified class main method
java -jar Xxx.jar
Run other class main method
java -classpath Xxx.jar com.xxx.classname
When you export a specified class, direct running jar package performs the specified class main method
java -jar Xxx.jar
Run other class main method
java -classpath Xxx.jar com.xxx.classname