我有这个Java代码:
import acm.program.*;
public class test extends Program
{
public void run () { println ("Hello World!!!");}
}
当我尝试编译它时,我得到了这个:
izzy @ izzy-VPCEB1S1E:〜/ Java $ javac -cp acm.jar test.java test.java:1: 错误:包acm.jar不存在import acm.jar.*;
^ test.java:3:错误:找不到符号
public class test extends Program { ^ symbol: class Program test.java:4: error: cannot find symbol public void run () { println ("Hello World!!!");} ^ symbol: method println(String) location: class test 3 errors