Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Startup Issue on Pi(Missing osgi jar file on Raspbarian (Buster))
Startup Issue on Pi [message #1814150] Wed, 04 September 2019 19:08 Go to next message
Dennis Putnam is currently offline Dennis PutnamFriend
Messages: 37
Registered: December 2017
Member
I have installed Eclipse on my Pi (running Buster) but get an error trying to start it.

!ENTRY org.eclipse.equinox.launcher 4 0 2019-09-04 14:41:14.908
!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:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
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)

My research indicates that this jar is missing:

org.eclipse.osgi...

Indeed it does not exist in the plugins directory. Apparently this is a distro dependent jar that, for whatever reason, is not installed with Eclipse. My question is, where do I get that jar for this distro? I did find "org.eclipse.osgi_3.8.1.v20120830-144521.jar" but it did not help so I assume it is the wrong one for the Pi. TIA.
Re: Startup Issue on Pi [message #1814161 is a reply to message #1814150] Thu, 05 September 2019 07:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Install a recent version of Eclipse. Older versions won't run with Java 12, only with Java 8.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Startup Issue on Pi [message #1814196 is a reply to message #1814161] Thu, 05 September 2019 13:47 Go to previous messageGo to next message
Dennis Putnam is currently offline Dennis PutnamFriend
Messages: 37
Registered: December 2017
Member
That is the only version available for Raspbarian. Never versions will not install.
Re: Startup Issue on Pi [message #1814201 is a reply to message #1814196] Thu, 05 September 2019 15:01 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Dennis, didn't we go through the problems running Eclipse on Raspbian in another thread already? https://www.eclipse.org/forums/index.php/t/1100163/

As for the missing jar, you didn't give a very complete name or mention how you installed this version of Eclipse--that would very much affect whether there truly are missing jars or other problems.


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Startup Issue on Pi [message #1814206 is a reply to message #1814201] Thu, 05 September 2019 15:23 Go to previous messageGo to next message
Dennis Putnam is currently offline Dennis PutnamFriend
Messages: 37
Registered: December 2017
Member
Yes, sort of. But that was before I understood what was going on. I installed the version in the Raspbarian repository. The issue is now that it did not install any version of the osgi jar. As I said the one I found, I am guessing, is not compatible or there is something else missing.

[Updated on: Thu, 05 September 2019 15:23]

Report message to a moderator

Re: Startup Issue on Pi [message #1814213 is a reply to message #1814206] Thu, 05 September 2019 20:32 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Ok, but how did you deduce that the osgi jar is missing? A version that old would not support Java 9 and newer--and it looks like you are running it with a version newer than Java 8 at least.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Startup Issue on Pi [message #1814216 is a reply to message #1814213] Thu, 05 September 2019 21:47 Go to previous messageGo to next message
Dennis Putnam is currently offline Dennis PutnamFriend
Messages: 37
Registered: December 2017
Member
Because it was referenced in /usr/lib/eclipse/configuration/config.ini. The installed version of java for Raspbarian is OpenJDK 11.0.3 which is the prereq for the Eclipse version installed.
Re: Startup Issue on Pi [message #1814227 is a reply to message #1814216] Fri, 06 September 2019 07:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
No, the old version of Eclipse you have installed will not run with Java 9 or higher. If you really need such an old version of Eclipse you'll have to run it with Java 8.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Startup Issue on Pi [message #1814255 is a reply to message #1814227] Fri, 06 September 2019 13:58 Go to previous messageGo to next message
Dennis Putnam is currently offline Dennis PutnamFriend
Messages: 37
Registered: December 2017
Member
I believe OpenJDK 11 is the equivalent of Java 8. If I use Java 8 instead of OpenJDK I get the same error. In any case I think I am getting closer. There is now one piece of the puzzle missing. The config.ini file references this:

org.eclipse.equinox.simpleconfigurator/bundles.info

That directory is missing. So far I have only found references to bundles.info as it relates to user profiles not to Eclipse itself.
Re: Startup Issue on Pi [message #1814276 is a reply to message #1814255] Sun, 08 September 2019 00:30 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

OpenJDK 11 is not the equivalent of Java 8, it's an implementation of Java 11. I'd question whether that was actually Java 8 you ran as a comparison --9 and above are structurally different in a way that causes java.base to be mentioned in these errors and to be incompatible with older Eclipse releases.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Startup Issue on Pi [message #1814337 is a reply to message #1814276] Mon, 09 September 2019 16:01 Go to previous messageGo to next message
Dennis Putnam is currently offline Dennis PutnamFriend
Messages: 37
Registered: December 2017
Member
I think I have figured out what is going on but I don't know how to fix it. You are correct that OpenJDK 11 is Java 11. However, I started out with OpenJDK 8 and when I install Eclipse (3.8 is all that is available in the repository) it updates Java to 11 as part of the install. I don't know how to install eclipse without the update to java.
Re: Startup Issue on Pi [message #1814350 is a reply to message #1814337] Tue, 10 September 2019 06:03 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
You can try this approach to explicitly specify the JVM to use:

https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Startup Issue on Pi [message #1814380 is a reply to message #1814350] Tue, 10 September 2019 13:58 Go to previous message
Dennis Putnam is currently offline Dennis PutnamFriend
Messages: 37
Registered: December 2017
Member
Thanks, I might give that a try. In the meantime I have installed IntelliJ Idea which installed easily and seems to run. I am learning how to use it to see if I even need to fight with Eclipse.
Previous Topic:New to Java
Next Topic:Help with BIRT Installation
Goto Forum:
  


Current Time: Thu Mar 28 22:39:22 GMT 2024

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

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

Back to the top