Apr 27, 2007

eclipse"Activation.main: 警告"的解决办法

Activation.main: 警告: sun.rmi.activation.execPolicy 系统属性未被指定且 ExecPermissions/ExecOptionPermissions均未被授权。随后的激活尝试失败,原因是对ExecPermission/ExecOptionPermission 的权限检查失败。 有关如何配置 rmid 安全性的文档说明,请参阅:
http://java.sun.com/javase/6/docs/technotes/tools/solaris/rmid.html
http://java.sun.com/javase/6/docs/tooldocs/win32/rmid.html

English Version
The error may coursed by you right click the whole project and chosed "run as". After this, a dialog comes out that "Select java application";the defalt value is "**", but at last the project autoselected Activation-sun.rmi.server. So come out the error.
The solution is directly run the application file , or just restart Eclipse.

报这个错误可能是因为你对最外面的大的项目点右键run as运行为了,所以跳出来一个SELECT JAVA APPLICATION的选框,默认的是**,而最后它用的是第一个选项Activation-sun.rmi.server,因此会报错。
这时在maching types选择运行的项目名即可正常运行,或者点项目中的函数名,再run as如运行hello world,则需对HelloWorld.java下的HelloWorld下的main点右键再选run as。
简单的办法就是,关掉Eclipse重启,这个问题就没有了。

No comments: