Setting up emacs-eclim

1,009 views
Skip to first unread message

Håkon Hægland

unread,
Nov 7, 2013, 11:24:34 AM11/7/13
to emacs...@googlegroups.com
Hi. I tried to install eclim using the instructions at:  http://eclim.org/install.html .
However, I think something went wrong.

I am using Ubuntu12.04 and I do not have root access to the machine (my company owns my machine).

I have the following programs already installed on my laptop:
  • vim version 7.3
  • java version 1.7.0_25
  • eclipse version 3.7.2

I downloaded the installer eclim_1.7.18.jar, and successfully run

  • java -jar eclim_1.7.18.jar

I would then like test the installation by running eclimd, however I cannot find the command "eclimd"..

According to http://eclim.org/install.html there should also be defined a shell variable $ECLIPSE_HOME pointing to the eclipse install dir, however this variable is empty..

Thanks for any help on this issue.

Tom Davis

unread,
Nov 7, 2013, 12:23:42 PM11/7/13
to emacs...@googlegroups.com
Not having ECLIPSE_HOME set isn't really eclim's problem and definitely
doesn't have anything to do with emacs-eclim.

Just run `find / -name eclimd -executable` if it's not on PATH.

hakon....@gmail.com writes:

> Hi. I tried to install eclim using the instructions at:
> http://eclim.org/install.html .
> However, I think something went wrong.
>
> I am using Ubuntu12.04 and I do not have root access to the machine (my
> company owns my machine).
>
> I have the following programs already installed on my laptop:
>
> - vim version 7.3
> - java version 1.7.0_25
> - eclipse version 3.7.2
>
> I downloaded the installer eclim_1.7.18.jar, and successfully run
>
> -

Håkon Hægland

unread,
Nov 7, 2013, 2:43:17 PM11/7/13
to emacs...@googlegroups.com
Not having ECLIPSE_HOME set isn't really eclim's problem and definitely
doesn't have anything to do with emacs-eclim.

Just run `find / -name eclimd -executable` if it's not on PATH.



Thanks! There seem to be three `eclimd` files. They are located in my home directory in the directory ".eclipse" :

/home/fcihh/.eclipse/org.eclipse.platform_3.7.0_155965261/plugins/org.eclim_1.7.18/bin/native/linux/eclimd
/home/fcihh/.eclipse/org.eclipse.platform_3.7.0_155965261/plugins/org.eclim_1.7.18/bin/eclimd
/home/fcihh/.eclipse/org.eclipse.platform_3.7.0_155965261/eclimd

Håkon Hægland

unread,
Nov 7, 2013, 2:50:19 PM11/7/13
to emacs...@googlegroups.com
I tried to run this:

/home/fcihh/.eclipse/org.eclipse.platform_3.7.0_155965261/eclimd


 with output:

 java -Xms40m -Xmx384m -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins -XX:MaxPermSize=256m -jar /usr/lib/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.dist.jar -debug -clean -refresh -application org.eclim.application_headless
Install location:
    file:/usr/lib/eclipse/
Configuration file:
    file:/usr/lib/eclipse/configuration/config.ini loaded
Configuration location:
    file:/home/fcihh/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/
Configuration file:
    file:/home/fcihh/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/config.ini loaded
Shared configuration location:
    file:/usr/lib/eclipse/configuration/
Framework located:
    file:/usr/lib/eclipse/plugins/org.eclipse.osgi_3.7.2.dist.jar
Framework classpath:
    file:/usr/lib/eclipse/plugins/org.eclipse.osgi_3.7.2.dist.jar
Debug options:
    file:/home/fcihh/.eclipse/org.eclipse.platform_3.7.0_155965261/.options not found
Time to load bundles: 39
Starting application: 9640
2013-11-07 20:45:13,331 INFO  [org.eclim.eclipse.AbstractEclimApplication] Workspace: /home/fcihh/workspace
2013-11-07 20:45:13,333 INFO  [org.eclim.eclipse.AbstractEclimApplication] Home: /home/fcihh/.eclipse/org.eclipse.platform_3.7.0_155965261/plugins/org.eclim_1.7.18/
2013-11-07 20:45:13,333 INFO  [org.eclim.eclipse.AbstractEclimApplication] Starting eclim...
2013-11-07 20:45:14,142 INFO  [org.eclim.eclipse.AbstractEclimApplication] Eclim Server Started on: 127.0.0.1:9091
Application Started: 12202
2013-11-07 20:45:15,531 INFO  [org.eclim.eclipse.AbstractEclimApplication] Loading plugin org.eclim
2013-11-07 20:45:15,629 INFO  [org.eclim.eclipse.AbstractEclimApplication] Loading plugin org.eclim.core
2013-11-07 20:45:15,910 INFO  [org.eclim.plugin.core.CorePlugin] Loading eclim plugins...
2013-11-07 20:45:15,911 INFO  [org.eclim.plugin.core.CorePlugin] Loading plugin org.eclim.jdt
2013-11-07 20:45:15,914 INFO  [org.eclim.plugin.core.CorePlugin] Plugins loaded.
2013-11-07 20:45:15,915 INFO  [org.eclim.eclipse.AbstractEclimApplication] Loaded plugin org.eclim.core

Håkon Hægland

unread,
Nov 7, 2013, 3:03:05 PM11/7/13
to emacs...@googlegroups.com


On Thursday, November 7, 2013 8:50:19 PM UTC+1, Håkon Hægland wrote:
I tried to run this:

/home/fcihh/.eclipse/org.eclipse.platform_3.7.0_155965261/eclimd



Then I followed the instructions on  https://github.com/senny/emacs-eclim and downloaded emacs-eclim using

then added the following to my .emacs init file:

(require 'eclim) (global-eclim-mode)

(require 'eclimd)

Next I tried to open a .java file in emacs. And the syntax highlighting seems to work now. I tried to place the cursor on a method name and execute "M-x eclim-java-find-references" but I got the following error in the Emacs backtrace buffer:

  eclim--execute-command-internal((lambda (command-line on-complete-fn) (let (...) (funcall on-complete-fn) res)) "java_search" ("-n" "-f" ("-o" (car i)) ("-l" (length ...)) ("-x" "references")))
  (eclim/execute-command "java_search" "-n" "-f" ("-o" (car i)) ("-l" (length ...)) ("-x" "references"))
  (let* ((hits ...) (eclim-auto-save ...)) (when hits (eclim--find-display-results ... hits)))
  (eclim/with-results hits ("java_search" "-n" "-f" ("-o" ...) ("-l" ...) ("-x" "references")) (eclim--find-display-results (cdr i) hits))
  (let ((i ...)) (eclim/with-results hits ("java_search" "-n" "-f" ... ... ...) (eclim--find-display-results ... hits)))
  eclim-java-find-references()
  call-interactively(eclim-java-find-references t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil

Reply all
Reply to author
Forward
0 new messages