更新时间:2022-05-20 02:42:43
如果定义了 -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!