关于ManagementFactory cannot be resolved的问题!
2015-04-26 15:47
381 查看
问题描述:
(1)ManagementFactory cannot be resolved
(2)Type The type sun.management.ManagementFactory is not visible
(3)java.lang.NoClassDefFoundError: sun.management.ManagementFactory
这个功能用了Java5、6中sun建议不使用,以后版本中可能会移除的一些类库。现在果然撞到枪口上,在java7中移除了。所以那个功能就不正常了。jdk1.7没有sun.management.ManagementFactory这个对象
解决方法:
把sun.management.ManagementFactory替换成java.lang.management.ManagementFactory
转自:http://www.java123.net/v/470810.html
(1)ManagementFactory cannot be resolved
(2)Type The type sun.management.ManagementFactory is not visible
(3)java.lang.NoClassDefFoundError: sun.management.ManagementFactory
这个功能用了Java5、6中sun建议不使用,以后版本中可能会移除的一些类库。现在果然撞到枪口上,在java7中移除了。所以那个功能就不正常了。jdk1.7没有sun.management.ManagementFactory这个对象
解决方法:
把sun.management.ManagementFactory替换成java.lang.management.ManagementFactory
转自:http://www.java123.net/v/470810.html
相关文章推荐
- 关于ManagementFactory cannot be resolved的问题!
- 关于“OnClickListener cannot be resolved to a type”问题
- ManagementFactory cannot be resolved
- 关于出现The type java.io.ObjectInputStream cannot be resolved.的问题解决
- ManagementFactory cannot be resolved
- 关于“JSONObject cannot be resolved to a type”问题的解决
- 关于class cannot be resolved to a type的问题
- Eclipse新建工程编译R cannot be resolved to a variable问题
- "cannot be resolved or is not a field"问题解决
- 在Eclipse中编写servlet时出现"The import javax.servlet cannot be resolved" 问题解决办法
- R.layout.main cannot be resolved 问题 补充回答。
- cannot be resolved or is not a field的问题解决
- The import junit cannot be resolved解决问题
- 关于“Some characters cannot be mapped using "GB2312" character encoding. ”的问题
- "cannot be resolved or is not a field"问题解决
- 'UserInfoBLL' node cannot be resolved for the specified context [MVC展示数据.Controllers.LoginController]问题解决
- Android开发 R cannot be resolved to a variable问题的分析
- Eclipse 项目XXXX cannot be resolved 问题
- Eclipse新建工程编译R cannot be resolved to a variable问题
- r cannot be resolved to a variable 问题解决 / r.java文件没有自动生成