java.lang.Object无法解析。它是从所需的.class文件间接引用的 [英] java.lang.Object can not be resolved. It is indirectly referenced from required .class files

查看:670
本文介绍了java.lang.Object无法解析。它是从所需的.class文件间接引用的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用eclipse 3.2版本。
在sametime基于我在包上得到错误:java.lang.Object无法解析。它是从必需的.class文件间接引用的。



在构建路径上JRE是JRE系统库[JavaSE-1.6](未绑定)



当我设置JRE是JRE系统库[jclDesktop Win32 x86],那么它给其他错误,如其他类的函数名。

解决方案

有一个许多差异。这意味着为Java 5(或任何其他Sun / Oracle Java)编写的Java代码可能无法使用jclDesktop。



如果要编写jclDesktop的应用程序,可以使用jclDesktop作为JRE系统库。如果您有一个Java应用程序,并希望将转换为jclDesktop,那么您必须解决所有编译时错误(希望最好)。



否则,安装Oracle Java SDK(JRE是足够的,虽然我建议使用附带 src.zip 文件的JDK),并将其用作JRE库。


i am using eclipse 3.2 version. in sametime based i am getting error on package: java.lang.Object can not be resolved. It is indirectly referenced from required .class files.

on build path JRE is JRE System Library [JavaSE-1.6] (unbound)

when i set the JRE is JRE System Library [jclDesktop Win32 x86] then it give others errors like on function name of other classes.

解决方案

There are a lot of differences between jclDesktop and Java 5. Which means, that Java code, written for Java 5 (or any other Sun/Oracle Java) will probably not compile with jclDesktop.

You can use jclDesktop as a JRE system library if you want to write applications for jclDesktop. If you have one Java application and want to convert it to jclDesktop, then you'll have to resolve all the compile time errors (and hope for the best).

Otherwise, install an Oracle Java SDK (JRE is enough although I'd recommend a JDK which comes with the src.zip file) and use that as JRE library.

这篇关于java.lang.Object无法解析。它是从所需的.class文件间接引用的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆