I've installed Raspian Buster on my RPI 3B. Then installed Eclipse from LXterminal:
sudo apt-get update
sudo apt-get install eclipse
When I run Eclipse (3.8) a startup logo displays and then an error message pops up. A potential fix was to download from eclipse.org and manually install. This gave the same error. Here is the log file content:
!SESSION Thu Sep 12 16:02:26 EDT 2019 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-09-12 16:02:27.158
!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)
This is a commonly reported error but none of the fixes seem to work for me. Anyone got any ideas?
Various forums offer potential solutions to this problem. None have worked for me so far. Maybe Eclipse 3.8 uses a version of java sdk that is different from the one installed in Buster. The eclipse.ini file contains the line:
-Dosgi.requiredJavaVersion=1.8
The default java version in Buster is openjdk 11.0.3 2019-04-16
My attempt to install oracle-java8-jdk from LXTerminal failed as it was "not available" and "package 'oracle-java8-jdk' has no installation candidate"
java
whatsoever.