更新时间:2022-05-20 02:42:07
如果定义-jar,则忽略-classpath:
If you define -jar the -classpath is ignored:
-jar当您使用此选项时,JAR文件是所有用户
类的源,并忽略其他用户类路径
设置。
-jar When you use this option, the JAR file is the source of all user classes, and other user class path settings are ignored.
您可以在清单元数据。
启动应用程序的最简单方法是使用scala脚本:
The easiest way to start your app is using the scala scripts:
scala -classpath target/scaaaaaaaaala-1.0.jar scaaalaaa.App Hello World!