在Mac OS上运行Eclipse 3.4.1中的Junit测试时出现问题
我收到这个错误:'Lanuching AllTests'遇到了问题.无法连接到VM.
!ENTRY org.eclipse.core.net 1 0 2009-01-29 10:07:44.047 !MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.25 4/16|*.169.254/16 by an external source. This value will be overwritten using th e values from the preferences !ENTRY org.eclipse.jdt.launching 4 120 2009-01-29 10:42:59.295 !MESSAGE Cannot connect to VM !STACK 0 java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at org.eclipse.jdi.internal.connect.SocketTransportService.accept(Socket TransportService.java:95) at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTra nsportImpl.java:56) at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept( SocketListeningConnectorImpl.java:135) at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable .run(StandardVMDebugger.java:107) at java.lang.Thread.run(Thread.java:613)
user495285.. 7
这就是我所做的解决了我的问题(MacOSX Lion上的Eclipse):
转到项目属性 - > Java Build Path-> Libraries
添加JRE系统库
转到"订购和导出"选项卡,将JRE系统库移至顶部.
希望能帮助到你.
这就是我所做的解决了我的问题(MacOSX Lion上的Eclipse):
转到项目属性 - > Java Build Path-> Libraries
添加JRE系统库
转到"订购和导出"选项卡,将JRE系统库移至顶部.
希望能帮助到你.