We have PDE application which we want migrate from 3.x to 4. version. For this we created new target platfrom. I got this TP in not complete state. Then I added neccesary .jars for solve ale eclipse and launch errors. But one launch problem remained. It is:
!SESSION Tue Jul 04 14:28:06 CEST 2017 -----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2017-07-04 14:28:06.334
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
But when I switch on our old TP, this problem not occurs, all is right. In both of them TP (I mean plugin in folder "plugins""and checked it in launch/debug configuration) I have plugins org.eclipse.equinox.launcher with version 1.2.0.
Please know someone what is problem? Thanks.
OSGI plugins:
Related
Currently running Lubuntu 18.04
Okay so I installed NetBeans and it crashed on startup. Purged Netbeans and reinstalled it fresh. It crashed again. After that I installed eclipse and when I tried to start it I was presented with a directory for an error log:
!SESSION Fri Oct 19 15:20:48 PDT 2018 !ENTRY
org.eclipse.equinox.launcher 4 0 2018-10-19 15:20:48.770 !MESSAGE
Exception launching the Eclipse Platform: !STACK
java.lang.ClassNotFoundException:
org.eclipse.core.runtime.adaptor.EclipseStarter
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
So I'm at a loss I'm pretty sure it has to do with the JRE/JDK versions but I don't even know which version should work with eclipse or netbeans. I really just need an easy way to compile java I'm trying to get this set up for a class I'm taking.
Mick Mnemonic
gave me this
link to a decent tutorial on using oracle and netbeans self installer instead of trying to install directly through synaptic package manager or apt-get.
Installed eclipse and Java8. But it isn't working.
When try to run it following error occur.
An error has occurred. See the log file
/home/shield/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1526718159168.log
I checked the log file and found these lines:
** !ENTRY org.eclipse.equinox.launcher 4 0 2018-05-19 13:40:07.262
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException:
org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)**
Just went through same issue with Ubuntu 18.04. Don't know specific answer but reinstalling directly from eclipse.org (C/C++ installer) eclipse-cpp-oxygen-3a-linux-gtk-x86_64.tar.gz went well. No more issues.
Installing at Ubuntu 16.04, no issues found with synaptic installation either.
So, just use eclipse installer in newest Ubuntu.
I just installed Eclipse Oxygen on a fresh Ubuntu 16.04 system. When I run the executable it fails with the following exception:
Exception in thread "logback configurator timer" java.lang.NoClassDefFoundError: ch/qos/logback/core/util/StatusPrinter
at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:187)
at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
at java.base/java.util.TimerThread.run(Timer.java:506)
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.core.util.StatusPrinter cannot be found by org.eclipse.m2e.logback.configuration_1.8.0.20160921-2002
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
... 6 more
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
What is going on here? Do I need to install additional libraries to run Eclipse Oxygen?
This is a bug or a particular problem with release M2 of Eclipse Oxygen. I Just installed release a.1 and it starts up correctly.
We are using a SWT eclipse based app on Eclipse Indigo 3.x version. Now we plan to migrate to Eclipse Juno whcih is 4.x. I followed instructions from here - http://www.vogella.com/tutorials/Eclipse4MigrationGuide/article.html
After resolving few issues I am stuck at following exc.:
org.osgi.framework.BundleException: The bundle "org.eclipse.ui.workbench_3.103.0.v20120530-1824 [279]" could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.e4.core.services; bundle-version="1.0.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
......
......
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.ui.forms 4 0 2014-06-25 18:38:38.526
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.forms.FormsPlugin for bundle org.eclipse.ui.forms is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:172)
....
....
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
.....
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:165)
... 12 more
My config.ini file:
eclipse.product=com.lehman.cmte.amm.prop.grid.client.product
osgi.splashPath=platform:/base/plugins/com.lehman.cmte.amm.prop.grid.client
osgi.bundles=org.eclipse.e4.ui.workbench.addons.swt_0.10.1.v20120523- 1955.jar#start,org.eclipse.equinox.common_3.6.100.v20120522- 1841.jar#start,org.eclipse.equinox.ds_1.4.0.v20120522-1841.jar#start,org.eclipse.equinox.event_1.2.200.v20120522-2049.jar#start,org.eclipse.equinox.util_1.0.400.v20120522-2049.jar#start,org.eclipse.ui.forms_3.5.200.v20120521-2329.jar#start,org.eclipse.ui.intro_3.4.200.v20120521-2344.jar#start,org.eclipse.e4.core.services_1.0.0.v20120521-2346.jar#start,org.eclipse.core.runtime_3.8.0.v20120521-2346.jar#start,org.eclipse.ui.workbench_3.103.0.v20120530-1824.jar#start
osgi.bundles.defaultStartLevel=4
eof=eof
I have org.eclipse.e4.core.services version 1.0.0 in plugins and have included it in config.ini.
What am I missing?
I am really clueless after spending lot of time in debugging the issue.
Thanks.
UPDATE
Made changes after comments from #greg-449
issue is that I am getting exc: java.lang.ClassNotFoundException: org.eclipse.ui.part.MultiPageEditorPart but I have required plugin under dependencies.
My xxx.product file has plugins radio button selected under tab Overview>Product Definition.
Do I need to provide the plugins list somewhere else too? like MANIFEST.MF? If I see Plugins tab under Run configurations, Add required plugins button is enabled and I have already included plugins in Run config by clicking that button and it has org.eclipse.ui.workbench_xxx.jar which contains class org.eclipse.ui.part.MultiPageEditorPart
Any pointer ??
Following this instruction, I could run headless Eclipse plugin in side Eclipse IDE.
I've got some error log info, but I guess I could ignore it based on this post - Unable to find feature.xml in directory
Following the instruction in site, I could generate the jar file. After copying the org.eclipse.equinox.launcher.jar, I tried to execute the jar file
java -jar org.eclipse.equinox.launcher_1.2.0.v20110502.jar -application headlessHello_1.0.0.201210101430.jar
I tried
java -cp .:org.eclipse.equinox.launcher_1.2.0.v20110502.jar org.eclipse.core.launcher.Main -application headlessHello_1.0.0.201210101430.jar
to get error message
An error has occurred. See the log file
/Users/users/Desktop/configuration/1349897444823.log
with this log file
!SESSION Wed Oct 10 14:30:44 CDT 2012 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2012-10-10 14:30:44.843
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.RuntimeException: Could not find framework
at org.eclipse.equinox.launcher.Main.getBootPath(Main.java:978)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:557)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
ADDED
From this site, the issue was because I didn't setup %R2_HOME%/plugins correctly. After the setup, I still get the error.
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
at org.eclipse.core.launcher.Main.main(Main.java:34)
An instance of headless Eclipse needs to include many plugins, not just your plugin. A minimal product includes:
org.eclipse.core.runtime
org.eclipse.core.variables
<your plugin(s) here>
EDIT
I generated the product, and here is the list of plugins used by my "minimal" headless Eclipse:
I output the product, and here is the list of plugins loaded:
org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar
org.eclipse.core.jobs_3.5.1.R36x_v20100824.jar
org.eclipse.core.runtime.compatibility.auth_3.2.200.v20100517.jar
org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520
org.eclipse.core.runtime_3.6.0.v20100505.jar
org.eclipse.equinox.app_1.3.1.R36x_v20100803.jar
org.eclipse.equinox.common_3.6.0.v20100503.jar
org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222
org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
org.eclipse.equinox.preferences_3.3.0.v20100503.jar
org.eclipse.equinox.registry_3.5.0.v20100503.jar
org.eclipse.osgi.services_3.2.100.v20100503.jar
org.eclipse.osgi.util_3.2.100.v20100503.jar
org.eclipse.osgi_3.6.2.R36x_v20110210.jar
So, might I recommend that you create a product for this Eclipse application you are building, and try that. Looking for a FAQ I found this. http://wiki.eclipse.org/FAQ_What_is_the_minimal_Eclipse_configuration%3F