Recently I have upgraded my eclipse to 4.7 to support Java9 After upgradation eclipse not loading pre-existing java application. When I check run as run as > run configuration and double clicks on java application it throws
An error has occurred. See error log for more details. tried to access method org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.getTabViewer()Lorg/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer; from class org.eclipse.jdt.internal.debug.ui.launcher.LocalJavaApplicationTabGroup
Above error is gone after I downloaded eclipse-oxygen1-a(which support java9 without any plugin) but still not able to run as java application. Getting this error on console
Error: Could not find or load main class
com.myclass.MyApplication
Caused by: java.lang.ClassNotFoundException:
com.myclass.MyApplication
I checked the error by built-in ErrorLog of Eclipse
Window -> Show View -> General -> Error Log
Getting the following error
Session Data
eclipse.buildId=4.7.1.M20170922-1005
java.version=9
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -data file:/home/shekhar/git/ -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
Plug-In: org.eclipse.jdt.launching
Severity: Error
Message: Xbootclasspath option have been removed as not supported beyond Java 8.