`
tangqi609567707
  • 浏览: 34805 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

Compile Error - The Type Comparable is not generic解决方法

    博客分类:
  • JAVA
阅读更多

StringBuffer query = new StringBuffer(768);

 

query.append("12312312");

 

以上第二句代码报错:The type Comparable is not generic, it cannot be parameterized with arguments<string>  

 

百思不得其解。

 

在一个过期很长时间的论坛里找到了这样的回答:

 

The problem is related with classpath.
You should right click on the project in Eclipse and select properties,
select "Java Build Path" then click the "Order and Export" tab and move the java runtime to top of the jar list.
After that, rebuild your project.

 

原文地址:http://rainsilence.iteye.com/blog/844814

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics