只用改成:
1 scalac test.scala //编译的时候使用的是Scala文件名称 2 scala -classpath . HelloWorld //执行的时候使用的是HelloWorld对象名称