Results 1 to 1 of 1
- 09-26-2008, 05:07 PM #1
Cannot debug on Eclipse.. and other IDE
Hi! I posted this on Netbeans thread as well and just trying my luck over here... just in case.
I'm currently using Vista and when I run a simple project on Eclipse, this error occur:
All I'm testing for is just this simple code...
And this is the error message when I try to run the debug...Java Code:public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here int a = 20; int b = a; System.out.println("Hello World! "+b); } }
Can anyone help?Java Code:[COLOR=Black]init: deps-jar: compile: Listening failed with arguments: {timeout=timeout=, port=port=, localAddress=localAddress=}[/COLOR] [COLOR=DarkRed]java.net.SocketException: Permission denied: listen failed[/COLOR] [COLOR=DarkRed]at org.netbeans.modules.debugger.jpda.ant.JPDAStart.execute(JPDAStart.java:220) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) at org.apache.tools.ant.Project.executeTarget(Project.java:1298) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1181) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Caused by: java.net.SocketException: Permission denied: listen failed at java.net.PlainSocketImpl.socketListen(Native Method) at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:374) at java.net.ServerSocket.bind(ServerSocket.java:320) at java.net.ServerSocket.bind(ServerSocket.java:277) at com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:237) at com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:265) at com.sun.tools.jdi.GenericListeningConnector.startListening(GenericListeningConnector.java:96) at com.sun.tools.jdi.SocketListeningConnector.startListening(SocketListeningConnector.java:67) at org.netbeans.modules.debugger.jpda.ant.JPDAStart.run(JPDAStart.java:258) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) --- Nested Exception --- java.net.SocketException: Permission denied: listen failed at java.net.PlainSocketImpl.socketListen(Native Method) at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:374) at java.net.ServerSocket.bind(ServerSocket.java:320) at java.net.ServerSocket.bind(ServerSocket.java:277) at com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:237) at com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:265) at com.sun.tools.jdi.GenericListeningConnector.startListening(GenericListeningConnector.java:96) at com.sun.tools.jdi.SocketListeningConnector.startListening(SocketListeningConnector.java:67) at org.netbeans.modules.debugger.jpda.ant.JPDAStart.run(JPDAStart.java:258) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)[/COLOR] [COLOR=Blue][U]C:\Users\Admin\Documents\NetBeansProjects\JavaApplication2\nbproject\build-impl.xml:438: The following error occurred while executing this line: C:\Users\Admin\Documents\NetBeansProjects\JavaApplication2\nbproject\build-impl.xml:227: java.net.SocketException: Permission denied: listen failed[/U][/COLOR] [COLOR=DarkRed]BUILD FAILED (total time: 0 seconds)[/COLOR]
Thanks!
Similar Threads
-
Eclipse debug not working on Windows Vista
By mathew.vinay in forum EclipseReplies: 5Last Post: 04-04-2009, 01:06 PM -
Cannot debug in NetBeans as well as other IDE
By pexlee in forum NetBeansReplies: 0Last Post: 09-26-2008, 04:45 PM -
SciTE-debug 0.9.1
By Java Tip in forum Java SoftwareReplies: 0Last Post: 04-10-2008, 04:14 PM -
how to debug the servlet
By tommy in forum Java ServletReplies: 1Last Post: 08-06-2007, 08:53 PM -
how to debug java code in eclipse
By rajesh058 in forum Advanced JavaReplies: 3Last Post: 07-25-2007, 11:19 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks