Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Starting Eclipse 4.14 with Java 11.0.6 on command Line --> Not Working : Need Help(Starting Eclipse 4.14 with Java 11.0.6 through command Line)
Starting Eclipse 4.14 with Java 11.0.6 on command Line --> Not Working : Need Help [message #1821986] Tue, 25 February 2020 08:18 Go to next message
Muhammad Wasim Akhtar Khan is currently offline Muhammad Wasim Akhtar KhanFriend
Messages: 9
Registered: February 2020
Junior Member
Hi I am trying to start the Eclipse 4.14 version through command line and it is not starting. Please have a look at my "LOG File" and suggest me valuable suggestion to get it working. I am working on Eclipse CDT for C/C++ Developers tool.

//--------------------------- LOG File Starts Here ------------------------------------------------------------
!SESSION 2020-02-25 08:58:34.510 -----------------------------------------------
eclipse.buildId=4.14.0.I20191210-0610
java.version=11.0.6
java.vendor=Debian
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product -application org.eclipse.cdt.core.CodeFormatter -verbose -config /media/sf_VirtualBox/eclipse/org.eclipse.cdt.core.prefs /media/sf_VirtualBox/eclipse/eclipse-workspace/TestExample.c
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product -consolelog -debug -application org.eclipse.cdt.core.CodeFormatter -verbose -config /media/sf_VirtualBox/eclipse/org.eclipse.cdt.core.prefs /media/sf_VirtualBox/eclipse/eclipse-workspace/TestExample.c

!ENTRY org.eclipse.osgi 4 0 2020-02-25 08:58:36.825
!MESSAGE An error occurred while automatically activating bundle org.eclipse.cdt.core (99).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.cdt.core.CCorePlugin.start() of bundle org.eclipse.cdt.core.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:863)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1015)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)
at org.eclipse.osgi.container.Module.doStart(Module.java:603)
at org.eclipse.osgi.container.Module.start(Module.java:467)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:493)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:571)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:346)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:425)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:620)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:929)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: java.lang.IllegalStateException: The instance data location has not been specified yet.
at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:59)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:136)
at org.eclipse.core.internal.runtime.InternalPlatform.getStateLocation(InternalPlatform.java:491)
at org.eclipse.core.runtime.Plugin.getStateLocation(Plugin.java:259)
at org.eclipse.cdt.core.CCorePlugin.start(CCorePlugin.java:406)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)
... 33 more
Root exception:
java.lang.IllegalStateException: The instance data location has not been specified yet.
at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:59)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:136)
at org.eclipse.core.internal.runtime.InternalPlatform.getStateLocation(InternalPlatform.java:491)
at org.eclipse.core.runtime.Plugin.getStateLocation(Plugin.java:259)
at org.eclipse.cdt.core.CCorePlugin.start(CCorePlugin.java:406)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1015)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)
at org.eclipse.osgi.container.Module.doStart(Module.java:603)
at org.eclipse.osgi.container.Module.start(Module.java:467)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:493)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:571)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:346)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:425)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:620)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:929)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

!ENTRY org.eclipse.epp.logging.aeri.ide 2 0 2020-02-25 08:58:36.919
!MESSAGE Could not resolve module: org.eclipse.epp.logging.aeri.ide [212]
Unresolved requirement: Import-Package: org.apache.lucene.document; version="[7.1.0,8.0.0)"


!ENTRY org.eclipse.osgi 4 0 2020-02-25 08:58:36.921
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.cdt.core was unable to load class org.eclipse.cdt.core.formatter.CodeFormatterApplication.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:198)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:929)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.cdt.core (99).
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:126)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:571)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:346)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:425)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:620)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
... 16 more
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.cdt.core.CCorePlugin.start() of bundle org.eclipse.cdt.core.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:863)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1015)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)
at org.eclipse.osgi.container.Module.doStart(Module.java:603)
at org.eclipse.osgi.container.Module.start(Module.java:467)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:493)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
... 26 more
Caused by: java.lang.IllegalStateException: The instance data location has not been specified yet.
at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:59)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:136)
at org.eclipse.core.internal.runtime.InternalPlatform.getStateLocation(InternalPlatform.java:491)
at org.eclipse.core.runtime.Plugin.getStateLocation(Plugin.java:259)
at org.eclipse.cdt.core.CCorePlugin.start(CCorePlugin.java:406)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)
... 33 more
Re: Starting Eclipse 4.14 with Java 11.0.6 on command Line --> Not Working : Need Help [message #1822003 is a reply to message #1821986] Tue, 25 February 2020 15:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
It looks like this application relies on plugins that rely on a workspace being available so you'd need to specify a -data argument followed by a folder that will be used as the "data location area".

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Starting Eclipse 4.14 with Java 11.0.6 on command Line --> Not Working : Need Help [message #1822010 is a reply to message #1822003] Tue, 25 February 2020 16:15 Go to previous messageGo to next message
Muhammad Wasim Akhtar Khan is currently offline Muhammad Wasim Akhtar KhanFriend
Messages: 9
Registered: February 2020
Junior Member
/media/sf_VirtualBox/eclipse/eclipse -consolelog -application org.eclipse.cdt.core.CodeFormatter -help -quiet -config /media/sf_VirtualBox/eclipse/org.eclipse.cdt.core.prefs -data /media/sf_VirtualBox/eclipse/eclipse-workspace/Aspi_Project/src/Aspi_Project.c
Usage: eclipse -application org.eclipse.cdt.core.CodeFormatter [ OPTIONS ] [ -config <configFile> ] <files>

<files> C/C++ source/header files and/or directories to format.
Only source/header file endings (like .c .cpp or .h) will be formatted in the given directory.
-config <configFile> Use the formatting style from the specified properties file.
Refer to the help documentation to find out how to generate this file.

The usage of -data for setting the workspace is not supported yet and should be avoided!

OPTIONS:

-help Display this message.
-quiet Only print error messages.
-verbose Be verbose about the formatting job.
Re: Starting Eclipse 4.14 with Java 11.0.6 on command Line --> Not Working : Need Help [message #1822011 is a reply to message #1822010] Tue, 25 February 2020 16:19 Go to previous messageGo to next message
Muhammad Wasim Akhtar Khan is currently offline Muhammad Wasim Akhtar KhanFriend
Messages: 9
Registered: February 2020
Junior Member
I have "-data" tag when I am specifying the workspace folder but it does not support the "-data" option in Eclipse 4.14 version as shown in the above reply. Need help and valuable suggestion in this regard. Many Thanks.
Re: Starting Eclipse 4.14 with Java 11.0.6 on command Line --> Not Working : Need Help [message #1822029 is a reply to message #1822011] Wed, 26 February 2020 07:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
The argument processing is rather complex. Before the application itself is launched, the Eclipse runtime will process arguments as well (and first). That includes all of these:

https://help.eclipse.org/2019-12/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html

These arguments are stripped out before the application itself is launched with any remaining command line arguments.

Given the failure you see:
Caused by: java.lang.IllegalStateException: The instance data location has not been specified yet.
at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:59)

It seems clear that the osgi.instance.area is not specified and this can be done with a -data argument.

So I cannot give you better advice than to try it.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Starting Eclipse 4.14 with Java 11.0.6 on command Line --> Not Working : Need Help [message #1822032 is a reply to message #1822029] Wed, 26 February 2020 08:25 Go to previous messageGo to next message
Muhammad Wasim Akhtar Khan is currently offline Muhammad Wasim Akhtar KhanFriend
Messages: 9
Registered: February 2020
Junior Member
I have found the solution with regard to this problem:

In eclipse.ini File We have to COMMENT or REMOVE these two lines:

1) -Dosgi.instance.area.default=@user.home/eclipse-workspace

2) -Dosgi.dataAreaRequiresExplicitInit=true

and Eclipse Formatting for CDT C/C++ Works for any file or directory consisting of multiple .h and .cpp/.c files

RESULT I GOT:

user@AMLR-1000:/media/sf_VirtualBox/eclipse$ /media/sf_VirtualBox/eclipse/eclipse -consolelog -application org.eclipse.cdt.core.CodeFormatter -verbose -config /home/user/eclipse-workspace/Aspi_Project/.settings/org.eclipse.cdt.core.prefs /home/user/eclipse-workspace/Aspi_Project/src/Aspi_Project.c

Configuration Name: /home/user/eclipse-workspace/Aspi_Project/.settings/org.eclipse.cdt.core.prefs

Starting format job ...

Formatting: /home/user/eclipse-workspace/Aspi_Project/src/Aspi_Project.c

DONE

Re: Starting Eclipse 4.14 with Java 11.0.6 on command Line --> Not Working : Need Help [message #1822036 is a reply to message #1822032] Wed, 26 February 2020 09:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Yes, that makes sense. The default behavior of the Eclipse installation wants to prompt for the workspace, which makes no sense for the application you are trying to run.

Thanks for sharing your solution!


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:cc1plus.exe error: failure to convert cp932 to utf-8.
Next Topic:HelloWorld project not successful
Goto Forum:
  


Current Time: Thu Mar 28 08:25:26 GMT 2024

Powered by FUDForum. Page generated in 0.04108 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top