facebook

Can't start Eclipse + DevStyle with Java 16

  1. DevStyle
  2.  > 
  3. Getting Help
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #675024 Reply

    mdilib
    Participant

    A fresh install of Eclipse 2021-06 can’t start with DevStyle installed, if running on Java 16. With Java 11 there seems to be no such problem. Looking at the console there are a lot of exception stack traces like this:

    java.lang.reflect.InvocationTargetException
    at jdk.internal.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    at org.eclipse.jface.resource.ImageDescriptor.createFromURL(ImageDescriptor.java:206)
    at org.eclipse.jface.resource.ResourceLocator.imageDescriptorFromBundle(ResourceLocator.java:123)
    at org.eclipse.ui.internal.commands.CommandImagePersistence.readImagesFromRegistry(CommandImagePersistence.java:116)

    Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.genuitec.eclipse.webicons.WebIcon
    at com.genuitec.eclipse.webicons.JSONIconStyle.isAvailable(JSONIconStyle.java:130)
    at com.genuitec.eclipse.webicons.StandardIconDefinition.isAvailable(StandardIconDefinition.java:69)
    at com.genuitec.eclipse.theming.core.services.ImageReplacementService.getReplacementFor(ImageReplacementService.java:211)
    at com.genuitec.eclipse.theming.core.internal.images.ImageInterceptor.createFromURLDelegate(ImageInterceptor.java:35)
    … 29 more

    OS: Manjaro Linux
    JDK16 Version:
    openjdk version “16.0.1” 2021-04-20
    OpenJDK Runtime Environment (build 16.0.1+9)
    OpenJDK 64-Bit Server VM (build 16.0.1+9, mixed mode)
    JDK11 Version:
    openjdk version “11.0.11” 2021-04-20
    OpenJDK Runtime Environment (build 11.0.11+9)
    OpenJDK 64-Bit Server VM (build 11.0.11+9, mixed mode)

    #675128 Reply

    support-swapna
    Moderator

    Hi,

    Apologies for the delayed response. We tested DevStyle on the same environment as yours and could not replicate the issue.

    Can you please try starting Eclipse with -clean command args and check if it starts fine? You can add -clean as first line to the eclipse.ini file located in the Eclipse installation directory or run this command from command line : eclipse.exe -clean

    If the above suggestion does not help, then please share with us the exact Eclipse distribution details (CDT/JEE etc) and the complete log file to help us get the full list of errors. Also let us know if any other third party plugins are installed.

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Can't start Eclipse + DevStyle with Java 16

You must be logged in to post in the forum log in