[eclim-user]Install error:"/usr/bin/eclipse" not found

148 views
Skip to first unread message

kashyap garimella

unread,
Oct 14, 2010, 10:14:08 AM10/14/10
to eclim...@googlegroups.com
Hi,

I tried to install eclim on fedora 12 and it gave me the following error:

-------------------------------------------------
$java -jar eclim_1.5.8.jar
Buildfile: installer.xml
2010-10-14 19:38:49,045 INFO  [org.formic.Installer] Running Installer.
2010-10-14 19:39:03,508 INFO  [org.formic.util.CommandExecutor] which gvim
2010-10-14 19:39:03,559 INFO  [org.eclim.installer.step.VimStep] which gvim: /usr/bin/gvim
2010-10-14 19:39:03,587 INFO  [org.formic.util.CommandExecutor] vim -f -X -u NONE -U NONE --cmd redir! > /tmp/eclim_installer7453090213702465162.tmp | silent! echo &rtp | quit
2010-10-14 19:39:07,243 WARN  [org.eclim.installer.step.RequirementProvider] Error checking eclipse version via plugins.
2010-10-14 19:39:07,330 INFO  [org.formic.util.CommandExecutor] vim --version
2010-10-14 19:39:16,244 INFO  [org.formic.util.CommandExecutor] which eclipse
2010-10-14 19:39:16,328 INFO  [org.formic.util.CommandExecutor] /usr/bin/eclipse
 -nosplash -clean -application org.eclipse.equinox.p2.director -metadataRepository file:///tmp/formic_1615146233/update -artifactRepository file:///tmp/formic_1615146233/update -installIU org
.eclim.installer.feature.group
java.io.IOException: Cannot run program "/usr/bin/eclipse
": java.io.IOException: error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:474)
        at java.lang.Runtime.exec(Runtime.java:610)
        at java.lang.Runtime.exec(Runtime.java:483)
        at org.formic.util.CommandExecutor.run(CommandExecutor.java:107)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:467)
        ... 3 more
2010-10-14 19:39:16,348 WARN  [org.eclim.installer.step.EclipsePluginsStep] Error installing eclim installer feature, attempting uninstall/reinstall.
2010-10-14 19:39:16,349 INFO  [org.formic.util.CommandExecutor] which eclipse
2010-10-14 19:39:16,368 INFO  [org.formic.util.CommandExecutor] /usr/bin/eclipse
 -nosplash -clean -application org.eclipse.equinox.p2.director -metadataRepository file:///tmp/formic_1615146233/update -artifactRepository file:///tmp/formic_1615146233/update -uninstallIU o
rg.eclim.installer.feature.group
java.io.IOException: Cannot run program "/usr/bin/eclipse
": java.io.IOException: error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:474)
        at java.lang.Runtime.exec(Runtime.java:610)
        at java.lang.Runtime.exec(Runtime.java:483)
        at org.formic.util.CommandExecutor.run(CommandExecutor.java:107)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:467)
        ... 3 more
2010-10-14 19:39:16,387 INFO  [org.formic.util.CommandExecutor] which eclipse
2010-10-14 19:39:16,405 INFO  [org.formic.util.CommandExecutor] /usr/bin/eclipse
 -nosplash -clean -application org.eclipse.equinox.p2.director -metadataRepository file:///tmp/formic_1615146233/update -artifactRepository file:///tmp/formic_1615146233/update -installIU org.eclim.installer.feature.group
java.io.IOException: Cannot run program "/usr/bin/eclipse
": java.io.IOException: error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:474)
        at java.lang.Runtime.exec(Runtime.java:610)
        at java.lang.Runtime.exec(Runtime.java:483)
        at org.formic.util.CommandExecutor.run(CommandExecutor.java:107)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:467)
        ... 3 more
java.lang.RuntimeException: error: Cannot run program "/usr/bin/eclipse
": java.io.IOException: error=2, No such file or directory out: null
        at org.eclim.installer.step.EclipsePluginsStep.installInstallerPlugin(EclipsePluginsStep.java:318)
        at org.eclim.installer.step.EclipsePluginsStep.access$100(EclipsePluginsStep.java:117)
        at org.eclim.installer.step.EclipsePluginsStep$1.run(EclipsePluginsStep.java:216)
        at foxtrot.AbstractWorkerThread$1.run(AbstractWorkerThread.java:39)
        at java.security.AccessController.doPrivileged(Native Method)
        at foxtrot.AbstractWorkerThread.runTask(AbstractWorkerThread.java:35)
        at foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:196)
        at foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:179)
        at java.lang.Thread.run(Thread.java:636)
Installer Context (Please include in bug reports):
  eclipse.home=/usr/share/eclipse
  eclipse.local=/home/kashyap/.eclipse/793567567
  featureList.ant=true
  featureList.cdt=true
  featureList.dltk=false
  featureList.dltkruby=false
  featureList.jdt=true
  featureList.maven=true
  featureList.pdt=false
  featureList.python=true
  featureList.wst=false
  vim.files=/home/kashyap/.vim
  vim.skip=false
2010-10-14 19:42:00,217 INFO  [org.formic.Installer] Installer Finished.
2010-10-14 19:42:00,240 DEBUG [ANT]
BUILD SUCCESSFUL
Total time: 3 minutes 11 seconds
2010-10-14 19:42:00,296 WARN  [ANT]      [echo] Installation canceled.
-------------------------------------------------

It says that /usr/bin/eclipse is not found. But when I do "ls -l /usr/bin/eclipse", I see that it is there. Is it something related to permissions? Please help.

Cheers,
Kashyap

kashyap garimella

unread,
Oct 14, 2010, 10:34:42 AM10/14/10
to eclim...@googlegroups.com
I can run eclipse as a normal user. And the permissions are present for all to execute "/usr/bin/eclipse":

$ ls -l /usr/bin/eclipse
-rwxr-xr-x. 1 root root 112 2010-09-01 03:34 /usr/bin/eclipse

Thanks,
Kashyap

Eric Van Dewoestine

unread,
Oct 15, 2010, 10:17:58 AM10/15/10
to eclim...@googlegroups.com

I see the issue. The problem is that if the installer doesn't find
the eclipse executable in the eclipse home, then it attempts to find
it on your path using 'which eclipse', unfortunately, it's failing to
strip off the trailing newline included in the output. The next
release of eclim alleviates the need for the eclipse executable
entirely, but until then, you should be able to work around the
problem by creating a temporary symlink for the installer to use:

$ sudo ln -s /usr/bin/eclipse /usr/share/eclipse/eclipse

--
eric

Reply all
Reply to author
Forward
0 new messages