Results 1 to 1 of 1
- 09-26-2008, 04:45 PM #1
Cannot debug in NetBeans as well as other IDE
Hi! I'm currently using Vista and have downloaded and installed NetBeans IDE 6.1 on it. But there's a problem occur when I'm working on the project, there's no debug option.. and when I found the option.. this error occur:
All I'm testing for is just this simple code...
and there's no toggle breakpoint for debugging.. I can only see the debugging option the menu <Run>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? I've already tried to check with Firewall, and that's not the cause. I'm running netbeans in administrator mode even though I'm already in the admin and it doesn't run as well.Java Code:Listening failed with arguments: {timeout=timeout=, port=port=, localAddress=localAddress=} java.net.SocketException: Permission denied: listen failed at [COLOR="DarkRed"]org.netbeans.modules.debugger.jpda.ant.JPDAStart.execute(JPDAStart.java:220) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor27.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.GeneratedMethodAccessor27.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.GeneratedMethodAccessor27.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] 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 [COLOR="DarkRed"]BUILD FAILED (total time: 0 seconds)[/COLOR]
Thanks!
Similar Threads
-
Java Debug Interface
By jbabe in forum Advanced JavaReplies: 2Last Post: 09-02-2008, 05:04 AM -
Threads in Debug view are jumpin' around
By p4ndaman in forum EclipseReplies: 1Last Post: 07-21-2008, 04:19 PM -
Java Debug Level
By keshari in forum New To JavaReplies: 1Last Post: 05-26-2008, 08:23 AM -
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


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks