I get this specific message:
ClassFormatError: Illegal field modifiers in class 0x100A.
It seems like there is a lot of this going around:
- https://bugs.eclipse.org/bugs/show_bug.cgi?id=435664
- https://bugs.eclipse.org/bugs/show_bug.cgi?id=434442
- java.lang.ClassFormatError: Illegal field modifiers in class
- ClassFormateError from using switch statements in Java 8's defender methods
- Java 8 ClassFormatException for interface with static methods, but only when using assertions
The program is a Swing app and runs fine from the command line using gradle.
But it is hard to debug things this way and the error moves around.
I need to use Java 1.8. Is there any kind of workaround?
Edit: IntelliJ community and netbeans work. but i have poor vision.
Edit 2: Now it's failing on almost all of the junit tests. this is most annoying.
Edit 3: Trying mars m6. ran into this fixed that problem (see my comment) by making a new project and copying src/ into it. swing app seems to work at first glance.
Thanks.