Closed jstepien closed 12 years ago
This error is due to an issue installing eclim where eclipse is not properly recognizing the new eclipse plugins. I have an updated installer I plan to release soon which should hopefully work better with eclipse distributions installed via package managers (apt in your case), but as a workaround you can download an eclipse version from eclipse.org and install eclim against that.
Thanks for the feedback. I'm looking forward for the release!
Hi, I had the same problem but re-ran the script and it worked the second time with the same options.
I am running into this same issue on Windows. Is it rare? I don't see any solution or recent info on it.
I had eclim working on this machine, then my boss insisted that I re-install Eclipse. I haven't gotten it to work since.
I ran a DOS shell as administrator. Here's the installation sequence:
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\MHackmann>cd Downloads\Eclipse-Android-install
C:\Users\MHackmann\Downloads\Eclipse-Android-install>dir Volume in drive C has no label. Volume Serial Number is 0832-A394
Directory of C:\Users\MHackmann\Downloads\Eclipse-Android-install
04/17/2012 05:13 PM
C:\Users\MHackmann\Downloads\Eclipse-Android-install>"C:\Program Files (x86)\Java\jre7\bin\java.exe" -version java version "1.7.0_03" Java(TM) SE Runtime Environment (build 1.7.0_03-b05) Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing)
C:\Users\MHackmann\Downloads\Eclipse-Android-install>"C:\Program Files (x86)\Java\jre7\bin\java.exe"
-jar eclim_1.7.3.jar
Buildfile: installer.xml
2012-04-18 08:21:18,376 INFO [org.formic.Installer] Running Installer.
2012-04-18 08:21:31,511 INFO [org.formic.util.CommandExecutor] vim.bat -f -X -u NONE -U NONE --cmd
redir! > C:/Users/MHACKM~1/AppData/Local/Temp/eclim_installer5369783529551044427.tmp | silent! echo
&rtp | quit
java.io.IOException: Cannot run program "vim.bat": CreateProcess error=2, The system cannot find the
file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.formic.util.CommandExecutor.run(CommandExecutor.java:107)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.
C:\Users\MHackmann\Downloads\Eclipse-Android-install>
======================= END INSTALL LOG ============
When I double-click on eclimd.bat, a window pops up:
Start VM: -XX:MaxPermSize=256m -Djava.class.path=C:\Program Files (x86)\eclipse\plugins/org.eclipse.equinox.l auncher_1.2.0.v20110502.jar -os win32 -ws win32 -arch x86 -launcher C:\Program Files (x86)\eclipse\eclipse.exe -name Eclipse --launcher.library C:\Program Files (x86)\eclipse\plugins/org.eclipse.equinox. launcher.win32.win32.x86_1.1.100.v20110502\eclipse_1406.dll -startup C:\Program Files (x86)\eclipse\plugins/org.eclipse.equinox.launcher_1 .2.0.v20110502.jar --launcher.overrideVmargs -product org.eclipse.epp.package.java.product -debug -clean -refresh -application org.eclim.application_headless -vm C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll -vmargs -XX:MaxPermSize=256m -Djava.class.path=C:\Program Files (x86)\eclipse\plugins/org.eclipse.equinox.l auncher_1.2.0.v20110502.jar Install location: file:/c:/Program Files (x86)/eclipse/ Configuration file: file:/c:/Program Files (x86)/eclipse/configuration/config.ini loaded Configuration location: file:/C:/Users/MHackmann/.eclipse/org.eclipse.platform_3.7.0_248562372/confi guration/ Configuration file: file:/C:/Users/MHackmann/.eclipse/org.eclipse.platform_3.7.0_248562372/confi guration/config.ini loaded Shared configuration location: file:/c:/Program Files (x86)/eclipse/configuration/ Framework located: file:/c:/Program Files (x86)/eclipse/plugins/org.eclipse.osgi_3.7.2.v2012011 0-1415.jar Framework classpath: file:/c:/Program Files (x86)/eclipse/plugins/org.eclipse.osgi_3.7.2.v2012011 0-1415.jar Debug options: file:/C:/Program Files (x86)/eclipse/.options not found Time to load bundles: 0 Starting application: 5054
================== END POP-UP WINDOW =============
Then an Eclipse dialog opens:
"An error has occurred. See the log file ..."
... which is displayed below:
!SESSION 2012-04-18 10:40:25.499 ----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.7.0_03 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.java.product -refresh -application org.eclim.application_headless Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product -debug -clean -refresh -application org.eclim.application_headless
!ENTRY org.eclipse.osgi 4 0 2012-04-18 10:40:30.662 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: Application "org.eclim.application_headless" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer. at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248) at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29) 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:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
!ENTRY org.eclipse.osgi 2 0 2012-04-18 10:40:30.678 !MESSAGE Info: cycle(s) found while stopping bundles: [[ch.qos.logback.classic,org.eclipse.m2e.logback.appender,org.slf4j.api,ch.qos.logback.slf4j,org.jboss.netty,com.ning.async-http-client,org.eclipse.m2e.maven.runtime,org.eclipse.m2e.archetype.common,org.eclipse.m2e.maven.indexer,org.eclipse.m2e.core,org.eclipse.m2e.core.ui]].
As far as I know, yes this is rare. I haven't personally encountered the issue in probably the last 5yrs. I do have 1 or 2 possible changes I can make which should hopefully alleviate this problem, but they are not trivial changes and I just haven't had time to implement either yet.
You can try reinstalling eclim to see if that works. If that doesn't then I'm afraid the next best option is to install eclim against a fresh eclipse install. For some reason the eclipse config can be finicky and get in a weird state where the only solution I've found is to just re-install it.
Eric,
I've managed to get past the issue. I don't think it is eclim's fault, so I doubt there's anything you can do about it. I was also unable to add new software plugins to Eclipse.
What I had to do was:
Delete the eclipse installation in C:\Program Files (x86)\,
Delete any files like .eclipse, .eclim, .android from my home directory,
Scrub the AppData subtree for any eclipse- or eclim-related files.
I then re-installed Eclipse, against a virgin workspace, and things were better.
I switched back to the old workspace, and things seem to be working.
So, my conclusion is that the Eclipse install was FUBAR, and more housecleaning before a re-install is required than would be intuitively casual to the obvious observer. ;-)
By the way, I LOVE eclim, even though it has its issues. It makes Eclipse tolerable for me to work in.
Thanks for all your work!
Mark
I've managed to get past the issue. I don't think it is eclim's fault, so I doubt there's anything you can do about it. I was also unable to add new software plugins to Eclipse.
Was it that other new plugins you tried to install weren't recognized either or was the eclipse update manager broken in some other way?
What I had to do was: Delete the eclipse installation in C:\Program Files (x86)\, Delete any files like .eclipse, .eclim, .android from my home directory, Scrub the AppData subtree for any eclipse- or eclim-related files.
I then re-installed Eclipse, against a virgin workspace, and things were better.I switched back to the old workspace, and things seem to be working.
So, my conclusion is that the Eclipse install was FUBAR, and more housecleaning before a re-install is required than would be intuitively casual to the obvious observer. ;-)
The eclipse configuration state and plugin install mechanisms are by far the most annoying aspects of eclipse. It's gotten better over the years but apparently things can still get screwed up in some way occasionally.
By the way, I LOVE eclim, even though it has its issues. It makes Eclipse tolerable for me to work in.
I'm glad you find it useful! Let me know what issues you have so I can try to address them at some point.
Thanks for all your work!
Mark
eric
Eric,
I was trying to install the Android ADT plugin, which was recognized, but Eclipse threw an error when trying to install it. That was a real show-stopper for me. I can edit with the other editors if I must, but I can't do my job without the ADT.
Eclim now works, but not perfectly. I can't open a file directly; it complains about the path and opens a blank Vim. I can navigate to the directory and open it, so I'm working around it for now. Deadlines loom, so I'll deal with it later.
Oh, and I get the same problem with the bottom line or two not being visible in the Eclipse frame (I'm not working headless), but if I make the frame that Vim is in full-screen, then restore it back, it's fixed.
Perhaps next week I can fiddle with this further.
Thanks again,
Mark
On 2012-04-19 12:29:07, Mark Hackmann wrote:
Eric,
I was trying to install the Android ADT plugin, which was recognized, but Eclipse threw an error when trying to install it. That was a real show-stopper for me. I can edit with the other editors if I must, but I can't do my job without the ADT.
Eclim now works, but not perfectly. I can't open a file directly; it complains about the path and opens a blank Vim. I can navigate to the directory and open it, so I'm working around it for now. Deadlines loom, so I'll deal with it later.
Make sure you don't have any cd or lcd calls in your vimrc file like another user did:
https://groups.google.com/d/topic/eclim-user/YDCM674-sZU/discussion
Oh, and I get the same problem with the bottom line or two not being visible in the Eclipse frame (I'm not working headless), but if I make the frame that Vim is in full-screen, then restore it back, it's fixed.
You should be able to fix this by disabling various parts of the gvim gui (http://eclim.org/eclimd.html#embedded-gvim third note after the image):
set guioptions-=m " turn off menu bar set guioptions-=T " turn off toolbar set guioptions-=L " turn off left scrollbar set guioptions-=l
Perhaps next week I can fiddle with this further.
Thanks again,
Mark
eric
Ah, yes, an ill-advised "cd $HOME" added to .vimrc since the troubles began. My environment variables are still not completely recovered. Thank you.
Disabling parts of gvim doesn't help with the visibility, alas. It works fine as long as you don't split the window vertically. But the first
It's not a big deal. Expanding the frame to full-screen and back again makes it right.
Thanks again,
Mark
Using Ubuntu 10.04. Installed Vim 7.2 and eclipse 3.5.2 from Ubuntu's repositories. Downloaded eclim_1.5.6.sh and installed it as root. Trying to launch /usr/lib/eclipse/eclimd as a user fails with "An error has occurred. See the log file /home/jan/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/1273420292539.log".
Output on stdout: http://nopaste.info/cb22c40400.html The log file: http://nopaste.info/19966a776f.html