Help to configure Eclimd with Eclipse on Windows

204 views
Skip to first unread message

Chan Nguyen

unread,
Aug 26, 2010, 11:06:22 AM8/26/10
to eclim-user
I followed the instruction guide, installed 'eclim', run 'eclimd.bat'.
When I click
Window - Show View - Other - Eclim - eclimd, there is a windowpop up
said:
--------------------------------------------------------------------------------------------------------------------------------------------------
2010-08-26 08:05:20,564 INFO
[org.eclim.eclipse.AbstractEclimApplication] Workspace: C:/Eclipse
Workspace
2010-08-26 08:05:20,564 INFO
[org.eclim.eclipse.AbstractEclimApplication] Starting eclim...
2010-08-26 08:05:20,564 INFO
[org.eclim.eclipse.AbstractEclimApplication] Loading plugin org.eclim
2010-08-26 08:05:20,564 INFO
[org.eclim.eclipse.AbstractEclimApplication] Loading plugin
org.eclim.core
2010-08-26 08:05:20,580 INFO [org.eclim.plugin.core.CorePlugin]
Loading eclim plugins...
2010-08-26 08:05:20,580 INFO [org.eclim.plugin.core.CorePlugin]
Loading plugin org.eclim.jdt
2010-08-26 08:05:20,580 INFO [org.eclim.plugin.core.CorePlugin]
Plugins loaded.
2010-08-26 08:05:20,580 INFO
[org.eclim.eclipse.AbstractEclimApplication] Loaded plugin
org.eclim.core
2010-08-26 08:05:20,580 INFO
[org.eclim.eclipse.AbstractEclimApplication] Eclim Server Started on
port 9091.
2010-08-26 08:05:20,580 ERROR
[org.eclim.eclipse.AbstractEclimApplication] Error starting eclim:
java.lang.RuntimeException: java.net.BindException: Address already in
use: JVM_Bind
at com.martiansoftware.nailgun.NGServer.run(NGServer.java:406)
at
org.eclim.eclipse.AbstractEclimApplication.start(AbstractEclimApplication.java:
116)
at org.eclim.eclipse.headed.EclimdView
$EclimThread.run(EclimdView.java:126)
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at com.martiansoftware.nailgun.NGServer.run(NGServer.java:386)
... 2 more
--------------------------------------------------------------------------------------------------------------------------------------------------

I have no idea what's going on? Any idea ?

Thanks

Eric Van Dewoestine

unread,
Aug 29, 2010, 10:14:17 PM8/29/10
to eclim...@googlegroups.com

That error is the result of another process already bound to the port
that eclimd is attempting to bind to (9091 by default). You could have
another eclimd running or some unrelated process is using the port
(I'm not sure off hand how to track down the process bound to a port
on windows).

Either way, if you want to run eclimd on a different port, you can
start eclipse with the following arguments (they need to be the last
arguments):

-vmargs -Dnailgun.server.port=9092

--
eric

Ali Piccioni

unread,
Nov 13, 2013, 7:04:05 PM11/13/13
to eclim...@googlegroups.com
To find the offending process:
lsof | grep 9091

Should look something like:
java      25356   apiccion   75r     IPv6           44378371       0t0        TCP localhost:9091 (LISTEN)
ng        29963   apiccion    5u     IPv4           44585200       0t0        TCP localhost:47949->localhost:9091 (ESTABLISHED)

Then do:
kill 25356
kill 29963

If that doesn't work then do:
kill -9 25356
kill -9 29963

Eric Van Dewoestine

unread,
Nov 13, 2013, 7:20:18 PM11/13/13
to eclim...@googlegroups.com
On 2013-11-13 16:04:05, Ali Piccioni wrote:
> To find the offending process:
>
> lsof | grep 9091
>
>
> Should look something like:
>
> java 25356 apiccion 75r IPv6 44378371 0t0
> TCP localhost:9091 (LISTEN)
> ng 29963 apiccion 5u IPv4 44585200 0t0
> TCP localhost:47949->localhost:9091 (ESTABLISHED)
>
>
> Then do:
>
> kill 25356
> kill 29963
>
>
> If that doesn't work then do:
>
> kill -9 25356
> kill -9 29963

That person was on windows. Perhaps they could install cygwin or some
other unix utils for windows package to get lsof, etc.

Also, an alternative of:

$ lsof | grep 9091

is to let lsof limit the list of processes bound to the port directly:

$ lsof -i :9091
> --
> You received this message because you are subscribed to the Google Groups "eclim-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to eclim-user+...@googlegroups.com.
> To post to this group, send email to eclim...@googlegroups.com.
> Visit this group at http://groups.google.com/group/eclim-user.
> For more options, visit https://groups.google.com/groups/opt_out.

--
eric
Reply all
Reply to author
Forward
0 new messages