7

My application isn't running correctly with Java 9. In order to debug it, I upgraded to Eclipse 4.7 (oxygen) since Neon doesn't have Java 9 support, and applied the Java 9 support patch.

After doing so, eclipse was failing to load any of my pre-existing Java Applications. Thinking it might be a version difference thing, I deleted them, to try re-adding. But when I click the "New" button to add a configuration, nothing happens.

If I double-click "Java Application," I get the following error:

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

I am able to add configurations for other types of applications (Java Applet, Eclipse Application) so it seems only to be an issue with Java Applications.

I also tried a fresh workspace, but that has the same issue. How can I fix this?

Tim
  • 73
  • 1
  • 6
  • 1
    Possible duplicate of [Choosing JRE runtime environment in java 9 in eclipse oxygen version](https://stackoverflow.com/questions/46453241/choosing-jre-runtime-environment-in-java-9-in-eclipse-oxygen-version). I assume the answer there states the reason for such issues. – Naman Sep 28 '17 at 07:26
  • 1
    I'm don't think this is a duplicate of that issue. I had that problem, and its what led me to this problem. Java 9 is in my list of installed JREs now. – Tim Sep 28 '17 at 16:21

2 Answers2

3

This is kind of a duplicate but since I experienced the issue and have seen a few others post about it, I'll post my answer of how I fixed it here.

If you go here: https://marketplace.eclipse.org/content/java-9-support-beta-oxygen/

You need to follow the step about updating Eclipse 4.7 from the link that ends in 4.7-U-builds. When you go to Install New Software and select Eclipse SDK, click Next until you get to the Install Remediation Page, and make sure that you are selecting the second option that says something like "update my installation to be compatible with the items being installed" instead of the option that says "keep my installation the same and modify the items being installed to be compatible."

The first time I installed Java 9 updates, I did it the latter way and ran into this problem. Now that I've gone back and chosen the former, I am able to add Java Application Run Configurations again.

Hope this helps.

  • When I installed the java 9 support plugin originally, there was a prompt similar to the one you described, and I chose that option. So initially I thought I had already done this. But adding 4.7-U-builds to my software sites separately and updating did fix the problem. – Tim Sep 28 '17 at 17:16
  • I believe we had the same issue then. Not sure what's different about installing from the 4.7-U-builds but it seems to fix the issue. Originally I had just installed the Java 9 plugin from the Marketplace. – Scott Molling Sep 28 '17 at 17:47
  • 1
    The fix for me was to install the "Eclipse SDK" from the 4.7-U-builds repository which required the removal of the "Eclipse for Java EE" package. – jazd Oct 06 '17 at 00:28
0

Eclipse Oxygen.1a (4.7.1a) Release

Update as of 11 October,2017 - You shall upgrade to the latest eclipse package Eclipse Oxygen.1a (4.7.1a) which is marked as released and supports Java 9.

Naman
  • 27,789
  • 26
  • 218
  • 353