EclipseFP not working at all - eclipse

I recently installed Haskell and EclipseFP on my computer, using the instructions here. I got as far as installing the plugin.
Unfortunately, the plugin appears to have an internal problem and is outputting the following error when I start Eclipse (as seen in "Error Log").
eclipse.buildId=4.4.0.I20140606-1215
java.version=1.8.0_20
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.standard.product -product org.eclipse.epp.package.standard.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.standard.product -data <PATH TO WORKSPACE> -product org.eclipse.epp.package.standard.product
org.eclipse.equinox.registry
Error
Thu Apr 16 19:37:20 PDT 2015
Plug-in net.sf.eclipsefp.haskell.ui was unable to load class net.sf.eclipsefp.haskell.ui.decorators.ProblemsLabelDecorator.
java.lang.ClassNotFoundException: An error occurred while automatically activating bundle net.sf.eclipsefp.haskell.ui (339).
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:116)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:531)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:311)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:386)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:294)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:52)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:289)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition$1.run(LightweightDecoratorDefinition.java:125)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:867)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.internalGetDecorator(LightweightDecoratorDefinition.java:120)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:255)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:83)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:367)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:349)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:372)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:332)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.osgi.framework.BundleException: Exception in net.sf.eclipsefp.haskell.ui.HaskellUIPlugin.start() of bundle net.sf.eclipsefp.haskell.ui.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
... 28 more
Caused by: java.lang.NullPointerException
at net.sf.eclipsefp.haskell.ui.internal.backend.BackendManager.getToolSandbox(BackendManager.java:1108)
at net.sf.eclipsefp.haskell.ui.internal.backend.BackendManager.getToolSandboxBin(BackendManager.java:1124)
at net.sf.eclipsefp.haskell.ui.internal.backend.BackendManager.getExecutablePath(BackendManager.java:128)
at net.sf.eclipsefp.haskell.ui.internal.backend.BackendManager.start(BackendManager.java:175)
at net.sf.eclipsefp.haskell.ui.HaskellUIPlugin.start(HaskellUIPlugin.java:106)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
... 35 more
Is there anything I should do to fix this problem? Or is it just a compatibility issue.

Open a shell and write cabal --help and see if it shows you some commands. Else download the Haskell Platform. If you are in Windows make sure you open always your eclipse as administrator:
Right click the link to Eclipse
Go to the Compatibility tab and mark something like Run always as administrator
Open Eclipse and goto New/Other/Haskel/ and pick your wanted kind of project.

Related

unable to start eclipse

I am getting following error while starting eclipse
!SESSION 2013-01-26 16:03:57.125 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110726_87724 (JIT enabled, AOT enabled)
J9VM - 20110726_087724
JIT - r9_20101028_17488ifx17
GC - 20101027_AA
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product com.ibm.rational.rsa4ws.product.v80.ide
Command-line arguments: -os win32 -ws win32 -arch x86 -product com.ibm.rational.rsa4ws.product.v80.ide -clean -consoleLog
!ENTRY org.eclipse.osgi 4 0 2013-01-26 16:04:17.812
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
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(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
You are going to need to add the following code to the bottom of eclipse.ini:
Dosgi.bundles=org.eclipse.equinox.common#2:start,org.eclipse.update.configurator#3:start,org.e. clipse.core.runtime#
If it still doesn't work then it looks like your going to have to re-install eclipse. I assume you know how to do so. One common mistake is downloading the wrong 'bit' package. Say if your PC is 32 bit but you download a 64 bit package.

unable to start Rational Software Architect [eclipse]

I have updated the eclipse [3.6 to 3.7] of rational software architect. After updating it I am unable to start the rational software architect, although the window task manager showing a process with name eclipse but nothing is appearing. When I enabled the consoleLog it showed me following message and it started
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\bootProfile_278dcaa46b40_91b46910b12
!SESSION 2013-01-24 16:11:27.765 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110726_87724 (JIT enabled, AOT enabled)
J9VM - 20110726_087724
JIT - r9_20101028_17488ifx17
GC - 20101027_AA
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product com.ibm.rational.rsa4ws.product.v80.ide
Command-line arguments: -os win32 -ws win32 -arch x86 -product com.ibm.rational.rsa4ws.product.v80.ide -consoleLog
!ENTRY org.eclipse.equinox.common 4 0 2013-01-24 16:11:30.328
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.common_3.6.0.v20100503 [1630]" could not be resolved. Reason: Another singleton version selected: org.eclipse.equinox.common_3.6.0.v20110523, Another singleton version selected: org.eclipse.equinox.common_3.6.0.v20110523
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(Unknown Source)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Unknown Source)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Unknown Source)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(Unknown Source)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(Unknown Source)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(Unknown Source)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Unknown Source)
Could anyone suggest what should I do to achieve the normal startup.
You probably have more versions of same plugins. You should remove older versions. Perhaps it get easier for you to do a clean install of everything.

Unable to launch Eclipse 4.1.2 after installing the Eclipse e4 tooling

After installing Eclipse e4 Tools in my Eclipse 4.1.2 from update site. I am getting error when launching the eclipse.exe "An error has occurred. See the log file <my_workspace_path>\.metadata\.log". And the content of .log file are:
!SESSION 2012-04-06 16:00:01.609 -----------------------------------------------
eclipse.buildId=M20120223-0900
java.fullversion=J2RE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr5-20090519_35743 (JIT enabled, AOT enabled)
J9VM - 20090519_035743_lHdSMr
JIT - r9_20090518_2017
GC - 20090417_AA
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -clean -console
!ENTRY org.eclipse.osgi 4 0 2012-04-06 16:00:17.343
!MESSAGE Application error
!STACK 1
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
at org.eclipse.emf.common.util.URI.segment(URI.java:1731)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.getBundle(ReflectionContributionFactory.java:135)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:61)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.processHierarchy(E4Workbench.java:196)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.init(E4Workbench.java:122)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.<init>(E4Workbench.java:73)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:293)
at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:534)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:520)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
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)
I also tried the eclipse.exe -clean to launch it but getting same error.
You should not install 0.12 version in 4.1.2 please use 4.2 builds
Probably using the wrong update site had caused this issue. But to resolve this issue I manually deleted all the plug-ins named org.eclipse.e4.tools*.*.jar from the plugins directory of eclipse. Then I launched the eclipse with -clean option and it was launched without the error that I was getting earlier.

Unexpacting error in eclipse on startup: "Unable to acquire application service"

Here is what I got from the Eclipse log when trying to start Eclipse on Ubuntu 10.10:
My exact Eclipse version is: to be filled by the OP
My JDK version used to launched Eclipse is: to be filled by the OP
The log:
!SESSION 2011-07-11 11:25:12.125 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.java.product
!ENTRY org.eclipse.osgi 4 0 2011-07-11 11:25:14.306
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
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(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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Do you have seen that error before, and how would you troubleshoot it?
If this is like bug 223756, it could be related to where Eclipse has been installed.
May be your crash relate to read-only installation? (bug 216066, bug 225257)
Yes, that sounds reasonable. My eclipse installation resides in /opt/eclipse,
where a 'normal' user doesn't have write access..

Eclipse on macosx: org.osgi.service.application.ApplicationException: No application id has been found

I had a problem on my macbook pro and a fresh installation of eclipse.
I would like to share the solution I got after some hours of puzzling.
Problem: Starting eclipse Helios does not work. A pop up window appears and suggests to look into the log file /Applications/eclipse/configuration/<xyz>.log which contains:
!SESSION 2011-07-05 14:05:17.027 -----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_26
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/alessia/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/alessia/.eclipse_keyring -showlocation
!ENTRY org.eclipse.osgi 4 0 2011-07-05 14:05:18.260
!MESSAGE Application error
!STACK 1
org.osgi.service.application.ApplicationException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:262)
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:369)
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:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Cause: Seems that a parsing exception occurs, but eclipse eats it and generates only the above useless information.
OS version:
System Version: Mac OS X 10.6.8 (10K540)
Kernel Version: Darwin 10.8.0
My config.ini:
#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Mon May 30 12:48:24 CEST 2011
org.eclipse.update.reconcile=false
eclipse.p2.profile=epp.package.java
osgi.instance.area.default=#user.home/Documents/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar
equinox.use.ds=true
eclipse.buildId=M20110210-1200
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar#1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.epp.package.java.product
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=#config.dir/../p2/
eclipse.application=org.eclipse.ui.ide.workbench
Remove the files /Application/eclipse/configuration/org.eclipse.core.runtime/.extraData.9 and /Application/eclipse/configuration/org.eclipse.core.runtime/.mainData.9
Remove any XML parser you have in your shared library folder. In my case I had xercesImpl.jar in /Library/Java/Extensions. Just to be sure, I moved all the content of the directory in /tmp
Restart eclipse
Breath...it should work now!
Move again your libraries in /Library/Java/Extensions
That's all. Hope this can help you!