摘要: Class _clazz = Class.forName(_clazzName);if (_clazz != null) { Method _getInstance = _clazz.getMethod("getInstance"); Object _handler = _getInstance.invoke(_clazz); Method _method = _clazz.getMethod(_methodName, METHOD_PARAM); if (_method != null) { _method.invoke(_clazz.c... 阅读全文
posted @ 2013-08-04 23:48 GTai 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 问 :importsun.management.ManagementFactory,我在rt包下已经找到sun.management.ManagementFactory,但就是有错,请问怎么回事。答:Eclipse默认将这些受访问限制的API设成了Error。解决方法:只要将Windows---Preferences---Java--Complicer---Errors/Warings里面的DeprecatedandrestrictedAPI中的Forbiddenreferences(accessrules)选为Waring就可以编译过了。在编写代码时,突然出现:Access restrict 阅读全文
posted @ 2013-08-04 18:03 GTai 阅读(354) 评论(0) 推荐(0) 编辑