Eclimd doesnt start

285 views
Skip to first unread message

Kai Karius

unread,
Aug 6, 2009, 7:35:21 AM8/6/09
to eclim-user
Hey Group,

installed eclim, but the daemon just wont start. If i enter

sudo /opt/eclipse/eclim

It gives the following output:

-debug -nosplash -clean -refresh
-application org.eclim.application_headless
-vmargs
Start VM: -XX:MaxPermSize=256m
-Djava.class.path=/opt/eclipse//plugins/
org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-os linux
-ws gtk
-arch x86
-launcher /opt/eclipse/eclipse
-name Eclipse
--launcher.library /opt/eclipse//plugins/
org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520/
eclipse_1206.so
-startup /opt/eclipse//plugins/
org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-product org.eclipse.epp.package.java.product
-debug
-clean
-refresh
-application org.eclim.application_headless
-vm /usr/lib/jvm/java-6-sun-1.6.0.14/jre/bin/../lib/i386/client/
libjvm.so
-vmargs
-XX:MaxPermSize=256m
-Djava.class.path=/opt/eclipse//plugins/
org.eclipse.equinox.launcher_1.0.200.v20090520.jar
Install location:
file:/opt/eclipse/
Configuration file:
file:/opt/eclipse/configuration/config.ini loaded
Configuration location:
file:/opt/eclipse/configuration/
Framework located:
file:/opt/eclipse/plugins/org.eclipse.osgi_3.5.0.v20090520.jar
Framework classpath:
file:/opt/eclipse/plugins/org.eclipse.osgi_3.5.0.v20090520.jar
Debug options:
file:/home/itwart/.options not found
Time to load bundles: 85
Starting application: 8345
2009-08-06 06:18:25,748 INFO
[org.eclim.eclipse.AbstractEclimApplication] Starting eclim...
2009-08-06 06:18:25,829 ERROR
[org.eclim.eclipse.AbstractEclimApplication] Error starting eclim:
java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3550 or swt-pi-gtk in
swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:
254)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:
159)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:
63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:
54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:131)
at org.eclim.eclipse.EclimApplicationHeadless.onStart
(EclimApplicationHeadless.java:44)
at org.eclim.eclipse.AbstractEclimApplication.start
(AbstractEclimApplication.java:76)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:
559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

Hope you can help me,

Kai

Eric Van Dewoestine

unread,
Aug 6, 2009, 11:37:45 AM8/6/09
to eclim...@googlegroups.com
On Thu, Aug 6, 2009 at 4:35 AM, Kai Karius<kai.k...@googlemail.com> wrote:
>
> Hey Group,
>
> installed eclim, but the daemon just wont start. If i enter
>
> sudo /opt/eclipse/eclim
>
> It gives the following output:
>
> ... snip ...

> [org.eclim.eclipse.AbstractEclimApplication] Error starting eclim:
> java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3550 or swt-pi-gtk in
> swt.library.path, java.library.path or the jar file
> ... snip ...

It appears that eclipse is having issue finding its own native
libraries for swt, something I've never seen happen before. What
platform are you on (osx, bsd, linux)? How did you install eclipse
(package manager, download from eclipse.org)?

--
eric

Kai Karius

unread,
Aug 7, 2009, 7:02:43 AM8/7/09
to eclim-user
Hey Eric,

its Ubuntu 9.04 Jaunty Jackalope. I downloaded and unpacked eclipse
to /opt/eclipse/, but did nothing else. Anything coming to your mind?

Greets, Kai

Kai Karius

unread,
Aug 7, 2009, 4:42:10 PM8/7/09
to eclim-user
Hey,

the errorlog has changed :/, after

sudo apt-get install eclipse-jdt

it outputs this:

"/opt/eclipse/eclipse"
Time to load bundles: 173
Starting application: 17644
2009-08-07 15:39:16,505 INFO
[org.eclim.eclipse.AbstractEclimApplication]
Start ing eclim...
2009-08-07 15:39:18,162 ERROR
[org.eclim.eclipse.AbstractEclimApplication]
Error starting eclim:
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:3910)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:
863)
at org.eclipse.swt.widgets.Display.create(Display.java:851)
at org.eclipse.swt.graphics.Device.<init>(Device.java:152)
at org.eclipse.swt.widgets.Display.<init>(Display.java:479)
at org.eclipse.swt.widgets.Display.<init>(Display.java:470)
at org.eclipse.swt.widgets.EclimDisplay.<init>
(EclimDisplay.java:40)
at org.eclim.eclipse.EclimApplicationHeadless.onStart
(EclimApplicationHe
adless.java:44)
at org.eclim.eclipse.AbstractEclimApplication.start
(AbstractEclimApplica
tion.java:76)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandl e.java:
(<unknown>:2953): GLib-GObject-WARNING **: invalid (NULL) pointer
instance

(<unknown>:2953): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_
TYPE_CHECK_INSTANCE (instance)' failed

(<unknown>:2953): Gtk-CRITICAL **: gtk_settings_get_for_screen:
assertion `GDK_I S_SCREEN
(screen)' failed

(<unknown>:2953): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)'
failed

(<unknown>:2953): GLib-GObject-WARNING **: value "TRUE" of type
`gboolean' is in valid or
out of range for property `visible' of type `gboolean'

(<unknown>:2953): Gtk-CRITICAL **: gtk_settings_get_for_screen:
assertion `GDK_I S_SCREEN
(screen)' failed

(<unknown>:2953): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)'
failed

(<unknown>:2953): Gtk-WARNING **: Screen for GtkWindow not set; you
must always set
a screen for a GtkWindow before using the window

(<unknown>:2953): Gdk-CRITICAL **: gdk_pango_context_get_for_screen:
assertion ` GDK_IS_SCREEN
(screen)' failed

(<unknown>:2953): Pango-CRITICAL **:
pango_context_set_font_description:
asserti on `context !=
NULL' failed

(<unknown>:2953): Pango-CRITICAL **: pango_context_set_base_dir:
assertion `cont ext !=
NULL' failed

(<unknown>:2953): Pango-CRITICAL **: pango_context_set_language:
assertion `cont ext !=
NULL' failed

(<unknown>:2953): Pango-CRITICAL **: pango_layout_new: assertion
`context != NUL L' failed

(<unknown>:2953): Pango-CRITICAL **: pango_layout_set_text: assertion
`layout != NULL' failed

(<unknown>:2953): Pango-CRITICAL **: pango_layout_set_attributes:
assertion `lay out !=
NULL' failed

(<unknown>:2953): Pango-CRITICAL **: pango_layout_set_alignment:
assertion `layo ut !=
NULL' failed

(<unknown>:2953): Pango-CRITICAL **: pango_layout_set_ellipsize:
assertion `PANG
O_IS_LAYOUT (layout)' failed

(<unknown>:2953): Pango-CRITICAL **:
pango_layout_set_single_paragraph_mode:
ass ertion
`PANGO_IS_LAYOUT (layout)' failed

(<unknown>:2953): Pango-CRITICAL **: pango_layout_set_width: assertion
`layout ! = NULL' failed

(<unknown>:2953): Pango-CRITICAL **: pango_layout_get_extents:
assertion `layout !=
NULL' failed

(<unknown>:2953): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen:
assertion `GDK _IS_SCREEN
(screen)' failed

(<unknown>:2953): Gtk-CRITICAL **: gtk_settings_get_for_screen:
assertion `GDK_I S_SCREEN
(screen)' failed

(<unknown>:2953): Gtk-CRITICAL **: gtk_icon_size_lookup_for_settings:
assertion
`GTK_IS_SETTINGS (settings)' failed

(<unknown>:2953): Gtk-WARNING **: Invalid icon size 6


(<unknown>:2953): Gtk-CRITICAL **: gtk_icon_theme_load_icon: assertion
`GTK_IS_I CON_THEME
(icon_theme)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb4634bc8, pid=2953, tid=3086288576
#
# JRE version: 6.0_14-b08
# Java VM: Java HotSpot(TM) Client VM (14.0-b16 mixed mode, sharing
linux-x86 )
# Problematic frame:
# C [libgtk-x11-2.0.so.0+0xfdbc8] gtk_icon_set_render_icon+0x6a8
#
# An error report file with more information is saved as:
# /home/itwart/hs_err_pid2953.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted


Pls help :/

Kai

Eric Van Dewoestine

unread,
Aug 7, 2009, 11:39:47 PM8/7/09
to eclim...@googlegroups.com
On Fri, Aug 7, 2009 at 1:42 PM, Kai Karius<kai.k...@googlemail.com> wrote:
>
> Hey,
>
> the errorlog has changed :/, after
>
> sudo apt-get install eclipse-jdt

Yeah, installing eclipse from apt-get is just going to make things
worse. They have an older version of eclipse which isn't compatible
with the current version of eclim and I'm not sure where there package
writes its files, so who knows what state your install is in now. My
advice would be to uninstall the ubuntu package, clean up all the
orphaned packages, remove your /opt/eclipse directory and start from
scratch:

$ sudo apt-get autoremove eclipse-jdt
$ sudo rm -rf /opt/eclipse
$ sudo tar -zxvf eclipse-<version>-galileo-linux-gtk.tar.gz -C /opt

If you are the only one on the machine, you should probably just go
ahead give yourself ownership of the eclipse install to avoid any
permission headaches as well:

$ sudo chown -R <username> /opt/eclipse

Hopefully, once you've done all that, then you should have a clean
eclipse install. Before installing eclim, try running eclipse to make
sure it is working properly:

$ /opt/eclipse/eclipse

If eclipse starts up without issue, then you should be able to give
installing eclim a shot.

I've tested a clean install of eclipse from an eclipse.org package on
a vanilla ubuntu 9.04 so if everything is installed correctly both
eclipse and eclim should work just fine in your environment.

If you continue to run into issues, please let me know and I'll do my
best to help you get this working.

--
eric

Kai Karius

unread,
Aug 8, 2009, 7:29:39 PM8/8/09
to eclim-user
Hey Eric,

i finally got it, after switching to debian. Would lol at that if
debian wasnt so uncomfortable...

Well. eclimd does start now, but vim tells me after entering some code
and pushing ctrlX ctrlU that "completefunc" isnt set. What exactly
does this mean?

Thx for you help buddy,

Kai

Eric Van Dewoestine

unread,
Aug 8, 2009, 8:06:56 PM8/8/09
to eclim...@googlegroups.com
On Sat, Aug 8, 2009 at 4:29 PM, Kai Karius<kai.k...@googlemail.com> wrote:
>
> Hey Eric,
>
> i finally got it, after switching to debian. Would lol at that if
> debian wasnt so uncomfortable...

I wouldn't give up on ubuntu. The canonical guys have put together a
great value add over debian. When it comes to eclipse though they are
very far behind, so you just have to avoid their eclipse packages.

> Well. eclimd does start now, but vim tells me after entering some code
> and pushing ctrlX ctrlU that "completefunc" isnt set. What exactly
> does this mean?

This just indicates that you haven't enabled filetype support for vim.
Just add the following to your ~/.vimrc:

filetype plugin indent on

Actually, if you are on a fresh install, you may need to install a
full version of vim as well. Some distros (fedora and ubuntu for
instance) only provide a very minimal install of vim by default. I'm
not familiar enough with debian to give you any concrete package
names, but if you were on a fresh install of ubuntu you would need to
run the following:

$ sudo apt-get remove vim-tiny
$ sudo apt-get install vim

I would guess that debian is probably close to that.

> Thx for you help buddy,

It's my pleasure.

--
eric

Kai Karius

unread,
Aug 9, 2009, 7:34:01 AM8/9/09
to eclim-user
Okay,

i did think of the vimrc before...maybe this output can help you help
me:

:PingEclim

eclim 1.5.1
eclipse 3.5.0

:EclimValidate
Result: OK, required settings are valid.

And still the outputs gives upon entering code

E764: Option 'completefunc' is not set

Any thoughts?

Kai
Message has been deleted

Eric Van Dewoestine

unread,
Aug 9, 2009, 12:17:41 PM8/9/09
to eclim...@googlegroups.com

When you are attempting code completion, what are the results of the
following:

:echom &ft
:scriptnames

--
eric

Kai Karius

unread,
Aug 9, 2009, 2:24:37 PM8/9/09
to eclim-user
Ok,

:scriptnames

1: /usr/share/vim/vimrc
2: /usr/share/vim/vim71/debian.vim
3: /home/itwart/.vimrc
4: /usr/share/vim/vim71/filetype.vim
5: /usr/share/vim/vim71/ftplugin.vim
6: /usr/share/vim/vim71/indent.vim
7: /home/itwart/.vim/plugin/eclim.vim
8: /home/itwart/.vim/eclim/plugin/ant.vim
9: /home/itwart/.vim/eclim/plugin/common.vim
10: /home/itwart/.vim/eclim/plugin/cproject.vim
11: /home/itwart/.vim/eclim/plugin/django.vim
12: /home/itwart/.vim/eclim/plugin/eclim.vim
13: /home/itwart/.vim/eclim/plugin/ftdetect.vim
14: /home/itwart/.vim/eclim/plugin/java_tools.vim
15: /home/itwart/.vim/eclim/plugin/largefile.vim
16: /home/itwart/.vim/eclim/plugin/make.vim
17: /home/itwart/.vim/eclim/plugin/maven.vim
18: /home/itwart/.vim/eclim/plugin/project.vim
19: /home/itwart/.vim/eclim/plugin/taglisttoo.vim
20: /home/itwart/.vim/eclim/plugin/vcs.vim
21: /usr/share/vim/vim71/plugin/getscriptPlugin.vim
22: /usr/share/vim/vim71/plugin/gzip.vim
23: /usr/share/vim/vim71/plugin/matchparen.vim
24: /usr/share/vim/vim71/plugin/netrwPlugin.vim
25: /usr/share/vim/vim71/plugin/rrhelper.vim
26: /usr/share/vim/vim71/plugin/spellfile.vim
27: /usr/share/vim/vim71/plugin/tarPlugin.vim
28: /usr/share/vim/vim71/plugin/tohtml.vim
29: /usr/share/vim/vim71/plugin/vimballPlugin.vim
30: /usr/share/vim/vim71/plugin/zipPlugin.vim
31: /home/itwart/.vim/eclim/autoload/eclim/display/signs.vim
32: /home/itwart/.vim/eclim/autoload/eclim/util.vim

echom $ft

Has no output.

Kai Karius

unread,
Aug 9, 2009, 2:25:53 PM8/9/09
to eclim-user
meant echom &ft ofc

Eric Van Dewoestine

unread,
Aug 9, 2009, 4:31:09 PM8/9/09
to eclim...@googlegroups.com
2009/8/9 Kai Karius <kai.k...@googlemail.com>:

If &ft is empty then no filtetype plugins will be loaded, hence no
completion support. Are you just doing this in an empty unnamed
buffer or are you actually editing a file. Give me a full list of
steps you are taking.

--
eric

Kai Karius

unread,
Aug 9, 2009, 6:24:38 PM8/9/09
to eclim-user
Hi Eric

just had another exciting lesson in RTFM. After reading TFM it worked
perfectly. Thx for all your help.

Kai

Eric Van Dewoestine

unread,
Aug 9, 2009, 7:17:20 PM8/9/09
to eclim...@googlegroups.com

lol, I'm happy to hear you've got it all sorted out.

--
eric

Kai Karius

unread,
Aug 10, 2009, 6:44:49 PM8/10/09
to eclim-user
Hey Eric

there is still another matter. When im trying to add something to the
projects .classpath file using the NewSrcEntry command, vim tells me
it doesnt know this command. Any suggestion. Secondly i want to start
eclimd automatically on serverstart. How could this be achieved?

my deepest thanks,

Kai

Eric Van Dewoestine

unread,
Aug 10, 2009, 7:30:48 PM8/10/09
to eclim...@googlegroups.com
On Mon, Aug 10, 2009 at 3:44 PM, Kai Karius<kai.k...@googlemail.com> wrote:
>
> Hey Eric
>
> there is still another matter. When im trying to add something to the
> projects .classpath file using the NewSrcEntry command, vim tells me
> it doesnt know this command. Any suggestion.

Are you actually editing the .classpath file ($ vim .classpath)? All
the :New* commands are only available when the .classpath file is the
current file you're editing.

> Secondly i want to start
> eclimd automatically on serverstart. How could this be achieved?

I assume you mean, when the desktop starts? What desktop environment
are you using (gnome, kde, xfce, etc.)? Each environment has their
own way of specifying which programs to start when the desktop starts.

If you are using gnome, these steps should work (replace the
${eclipse.home} portion with the path to your eclipse root directory:

$ mkdir -p ~/.config/autostart
$ vi ~/.config/autostart/eclimd.desktop

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=eclimd
Exec=${eclipse.home}/bin/eclimd start
StartupNotify=false
X-GNOME-Autostart-enabled=true

With KDE the following should do the trick (again, replace the
${eclipse.home} portion with the path to your eclipse root directory:

$ mkdir -p ~/.kde/Autostart
$ vi eclimd

#!/bin/bash
${eclipse.home}/bin/eclimd start

--
eric

Kai Karius

unread,
Aug 10, 2009, 9:04:51 PM8/10/09
to eclim-user
Hey,

actually i DID edit the .classpath file of a project. eclimd was
working, the command NewSrcEntry wasnt.

To the other matter, I dont use a desktop environment. Should I ask in
a debian forum then? Starting eclimd isnt rly a eclim-specific matter.

Kai

Eric Van Dewoestine

unread,
Aug 10, 2009, 11:46:47 PM8/10/09
to eclim...@googlegroups.com
On Mon, Aug 10, 2009 at 6:04 PM, Kai Karius<kai.k...@googlemail.com> wrote:
>
> Hey,
>
> actually i DID edit the .classpath file of a project. eclimd was
> working, the command NewSrcEntry wasnt.

Hmm, while editing the .classpath file, what is the result of:
:echom &ft
:scriptnames

> To the other matter, I dont use a desktop environment. Should I ask in
> a debian forum then? Starting eclimd isnt rly a eclim-specific matter.

I suppose you could try writing an init script, perhaps using
start-stop-daemon to do the heavy lifting. I haven't tried in a long
time, but when I did play around with an init script I ran into the
issue of eclipse requiring a running x server in order to load its
dependencies which meant that I couldn't have the init script start
with the server, but instead had to defer starting until and x
environment was running. Are you running eclimd without any x server,
or are you using xvfb or something similar?

--
eric

Kai Karius

unread,
Aug 11, 2009, 8:17:16 AM8/11/09
to eclim-user
Hey Eric,

here is the data you required:

:echom &ft
xml
31: /usr/share/vim/vim71/scripts.vim
32: /usr/share/vim/vim71/ftplugin/xml.vim
33: /home/itwart/.vim/eclim/ftplugin/xml/eclim.vim
34: /usr/share/vim/vim71/indent/xml.vim
35: /home/itwart/.vim/eclim/indent/xml.vim
36: /home/itwart/.vim/eclim/indent/dtd.vim
37: /home/itwart/.vim/eclim/indent/indentanything.vim
38: /home/itwart/.vim/eclim/autoload/eclim/display/signs.vim
39: /home/itwart/.vim/eclim/autoload/eclim/util.vim

Actually, im not sure. I installed the basic server package. Cant
remember installing an x server. Im using PuTty and Xming (only for
the eclim installation) to access the server.

Kai

Eric Van Dewoestine

unread,
Aug 11, 2009, 11:37:37 AM8/11/09
to eclim...@googlegroups.com
On Tue, Aug 11, 2009 at 5:17 AM, Kai Karius<kai.k...@googlemail.com> wrote:
>
> Hey Eric,
>
> here is the data you required:
>
> :echom &ft
> xml

That's definitely an issue. The filetype should be
'eclipse_classpath'. While editing the .classpath file, what is the
result of:

:echom b:xmlroot

Can you send me the contents of your .classpath file? For some reason
eclim isn't properly recognizing the file, so hopefully if I can get a
look at the contents, I'll be able to determine why.

--
eric

Kai Karius

unread,
Aug 11, 2009, 12:52:34 PM8/11/09
to eclim-user
Hey,

my .classpath file is:

/home/itwart/workspace/kawa/.classpath

The content is:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="src" path="src/java"/>
</classpath>

The command you gave me has no output.

Kai

Eric Van Dewoestine

unread,
Aug 11, 2009, 11:19:21 PM8/11/09
to eclim...@googlegroups.com

It looks like you don't have syntax highlighting turned on. Try
adding the following to your vimrc and then try editing the .classpath
file again and see if those commands are available:

syntax on

--
eric

Kai Karius

unread,
Aug 12, 2009, 9:55:39 AM8/12/09
to eclim-user
It works now. And its pretty, too! Another matter: I start eclimd from
a windows pc using putty and Xming. It doesnt work without Xming - you
said the eclipse process needs it (X Server) to start. Very well. But
i would like to use ONLY putty (cause it portable) - so how can i
start eclimd in a way that it depends only on the Server, and not the
remote machine?

Kai

Eric Van Dewoestine

unread,
Aug 12, 2009, 10:43:39 AM8/12/09
to eclim...@googlegroups.com

I haven't tried it, but you could look into using xvfb[1]. I believe
it's included with the xorg server, so that does mean you'd have to
install the various x dependencies on your server.

[1] http://en.wikipedia.org/wiki/Xvfb

--
eric

Reply all
Reply to author
Forward
0 new messages