Activation.main: 警告: sun.rmi.activation.execPolicy 系统属性未被指定且 ExecPermissions/ExecOptionPermissions均未被授权

刚刚开始用Eclipse编写代码就遇见这样的问题:

 

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

http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/rmid.html
http://java.sun.com/j2se/1.4/docs/tooldocs/win32/rmid.html

Activation.main: 出现异常:java.rmi.server.ExportException: 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.server.Activation$ActivatorImpl.(Unknown Source)
 at sun.rmi.server.Activation.init(Unknown Source)
 at sun.rmi.server.Activation.startActivation(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

上网上google了一下知道了 在项目代码中右键Run as就可以了。

你可能感兴趣的:(笨鸟之Java问题)