标签: java
As you can see from the pic, StdOut is a error for can't be resolved. But when I click it with holding Ctrl, I can still open the StdOut.class(Also in pic,you can see it) And StdOut class is in stdlib.jar which is in Referenced Libraries in left of pic. I just want to use StdOut.class. What should I DO?
答案 0 :(得分:0)
尝试将jar添加为外部jar BuildPath>>配置BuildPath>> Libraries>>添加外部Jar 在使用之前,请尝试导入StdOut的完整路径。
答案 1 :(得分:0)
我找到了一个愚蠢的解决方案:找到StdOut.class并从中复制内容,在我的项目中创建一个新包并粘贴它。虽然它很愚蠢,但这次StdOut.class可以解决(Eclipse可以解析我知道的包)。