好长的题目,主要是第一次用这个JDOM,也不知道怎么回事,居然说sun.rmi.XXX出问题,我又没招惹它,详细的错误如下:
Activation.main: 警告: sun.rmi.activation.execPolicy 系统属性未被指定且ExecPermissions/ExecOptionPermissions均未被授权。随后的激活尝试失败,原因是对ExecPermission/ExecOptionPermission 的权限检查失败。 有关如何配置 rmid 安全性的文档说明,请参阅:
Activation.main: 出现异常:Port already in use: 1098; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
at sun.rmi.registry.RegistryImpl.setup(Unknown Source)
at sun.rmi.registry.RegistryImpl.(Unknown Source)
at java.rmi.registry.LocateRegistry.createRegistry(Unknown Source)
at sun.rmi.server.Activation.main(Unknown Source)
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(Unknown Source)
... 9 more
后来从网上查,才发现:
报这个错误是因为你对最外面的大的项目点run as了,所以跳出来一个SELECT JAVA APPLICATION的选框,默认的是**,而最后它用的是第一个选项Activation-sun.rmi.server,就报错了!
运行ECLIPSE中的java程序是要点函数名,再run as
如运行hello world,则需对
HelloWorld.java下的
HelloWorld下的
main点右键再选run as!
如果你搜索“sun.rmi.activation.execPolicy 系统
属性未被指定且 ExecPermissions/ExecOptionPermissions
均未被授权。随后的激活尝试失败,原因是对
ExecPermission/ExecOptionPermission 的权限检查失败。”这个错误的话就走入了误区!
因为是第一次玩Eclipse,按visual stdio的方法去编译,被搞死了!!
开始也是搜索那个错误,结果找不到答案。还以为配置环境变量的时候搞错了,找了4个小时才找出来这个原因
注:以上文字为转载
人家是因为第一次玩Eclipse才出现这种错误,我这用了这么长时间的,无语了……
不管怎么说,反正找出错误原因了。
PS:果然出问题了,它提示我:您输入的文章标题太长,请保持在50字以内。