aspose file tools*
The moose likes Beginning Java and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark ""Hello World" compilling error" Watch ""Hello World" compilling error" New topic
Author

"Hello World" compilling error

Ady Adisor
Greenhorn

Joined: Jan 26, 2006
Posts: 1
Hello everybody!
I get this error message in NetBeans 5.0 in any source code
when I try to run:

java.net.SocketException: Invalid argument: listen failed
at org.netbeans.modules.debugger.jpda.ant.JPDAStart.execute(JPDAStart.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
Caused by: java.net.SocketException: Invalid argument: 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:219)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
--- Nested Exception ---
java.net.SocketException: Invalid argument: 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:219)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
C:\Documents and Settings\Ady\Desktop\test\JavaApplication6\nbproject\build-impl.xml:358: The following error occurred while executing this line:
C:\Documents and Settings\Ady\Desktop\test\JavaApplication6\nbproject\build-impl.xml:164: java.net.SocketException: Invalid argument: listen failed
BUILD FAILED (total time: 1 second)

Can somebody help me?
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Have you tried to compile your program from the command-line? It might be simpler doing so, even if it takes a little bit of work to set it up so you can.

The error you see here is a problem with Netbeans, not your code. I don't know why this error occurs. You might want to google for the error message to see if it is a known issue. The only suggestion I can give at the moment is to uninstall and reinstall NetBeans.

Sorry that I can't be of any further help.

Layne


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "Hello World" compilling error