not all jar packages contain the main class
so you can't run them
for example:
you can package your classes into tow jars,but only one contain the main entry class,the other one will not runnalbe form the command line
so you can't run them
for example:
you can package your classes into tow jars,but only one contain the main entry class,the other one will not runnalbe form the command line
我用java -jar 就能顺利运行。