4

I am trying to install eclipse + elim in a remote linux server where there is no internet connection and no display available (I am accessing the server using putty). Also I don't have root access in this server. eclim is installed successfully in the server but when I am trying to run eclimd it is throwing error like below:

Exception in thread "Thread-4" java.lang.NoClassDefFoundError: org/eclipse/ui/PlatformUI
        at org.eclim.eclipse.EclimApplication.shutdown(EclimApplication.java:144)
        at org.eclim.eclipse.EclimApplication$1.run(EclimApplication.java:102)
Caused by: java.lang.ClassNotFoundException: org.eclipse.ui.PlatformUI cannot be found by org.eclim_2.5.0
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 2 more

How can I run eclimd in this server?

9
  • Your question is, "How to install eclipse in a headless environment?". Right?
    – A.B.
    Nov 5, 2015 at 5:50
  • Not only eclipse also eclim... Nov 5, 2015 at 6:35
  • You said, eclim is installed.
    – A.B.
    Nov 5, 2015 at 6:41
  • Yes installed but not running properly. Nov 5, 2015 at 20:28
  • To install eclipse, try step 1 to 4 from my answer here: askubuntu.com/a/674017/367165
    – A.B.
    Nov 6, 2015 at 7:23

1 Answer 1

4

As you say you do not have root access, the following steps install everything to your home folder:

Download and install eclipse

  1. Download eclipse here, eg. Eclipse IDE for Java EE Developers 64-bit.

  2. Extract the archive, change the name of the archive if necessary

     tar xf eclipse-jee-mars-1-linux-gtk-x86_64.tar.gz -C ~
    

Install and run eclim

  1. Install eclim with -Declipse.home="$HOME/eclipse"

    Check the filename eclim_2.5.0.jar and replace it if necessary

     java -Dvim.files=$HOME/.vim -Declipse.home="$HOME/eclipse" -jar eclim_2.5.0.jar install
    
  2. Run eclimd

     ./eclipse/eclimd -b
    

Partially taken from here

1
  • can eclim and eclimd and eclipse not be installed with umake?
    – Thufir
    Jan 17, 2017 at 14:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .