I am developing an application in Netbeans, and it is using JavaDB. I can connect to it and execute queries without issues, but for some reason, the “Output – JavaDB Database Process” pane within Netbeans keeps displaying
Security manager installed using the Basic server security policy.
Could not listen on port 1527 on host localhost:
java.net.BindException: Address already in use
How do I find out what process is already using, or bound to that port?
On Ubuntu Karmic, Netbeans 6.7.1
To find the pid of a process listening to the port 1527, either use:
or
And then:
And I’m pretty sure that what you’ll find is the pid of a Java process corresponding to JavaDB (I don’t know many processes using port 1527 apart from JavaDB). How did you actually start it?
PS: I’m using JavaDB that I’m starting on the command line, outside any IDE.