用netbeans运行java项目,出现下面的问题,求高手解答Activation.main:
run:Activation.main:警告:sun.rmi.activation.execPolicy系统属性未被指定且ExecPermissions/ExecOpti...
run:
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(TCPTransport.java:310)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
at sun.rmi.server.Activation$ActivatorImpl.<init>(Activation.java:359)
at sun.rmi.server.Activation.init(Activation.java:231)
at sun.rmi.server.Activation.startActivation(Activation.java:202)
at sun.rmi.server.Activation.main(Activation.java:2040)
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:27)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:333)
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
... 8 more
Java Result: 1 展开
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(TCPTransport.java:310)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
at sun.rmi.server.Activation$ActivatorImpl.<init>(Activation.java:359)
at sun.rmi.server.Activation.init(Activation.java:231)
at sun.rmi.server.Activation.startActivation(Activation.java:202)
at sun.rmi.server.Activation.main(Activation.java:2040)
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:27)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:333)
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
... 8 more
Java Result: 1 展开
4个回答
展开全部
NetBeans的默认端口是8080,你是不是在其他的服务器上用的也是8080端口,服务器例如:Tomcat,你要装的是Tomcat,你就在Tomcat \conf目录下,找到server.xml,查找port ,然后把它的端口改成其他的,就行了
追问
我没有安装Tomcat哦,而且netbeans的默认端口是8080嘛?我在网上找他们都都是说问题出现在端口1098被占用,用什么方法可以看端口被哪个程序占用,还有怎么换程序的端口啊?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
端口占用,重启netbeans,查看端口1098是哪个程序在用。
更多追问追答
追问
用什么方法可以看端口被哪个程序占用,还有怎么换程序的端口啊?
追答
1,Cmd 输入 netstat –ano
可以看到
2,
例如我查80端口被什么占用了 对应的进程id是 3600
再输入tasklist来查看 pid 3600是哪个进程什么程序在跑
3,
可以很快看到是tomcat6在用pid 3600 也即此占用了80端口
此时可以用 taskkill /pid 3600 /t /f 快速关闭此进程
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
1098被占用,你运行的java程序中的socket程序 ,肯定创建了 1098端口的程序吧,
修改一下即可
修改一下即可
追问
我用360把java占用1089的进程删除了,还是这样子!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
i don't know 太乱了
追问
不乱啊,netbeans显示的错误就是这样的!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询