3

I get this specific message:

ClassFormatError: Illegal field modifiers in class 0x100A.

It seems like there is a lot of this going around:

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.

Community
  • 1
  • 1
Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
  • Is `Compiler compliance level` set to `1.8`? – Eng.Fouad Mar 09 '15 at 06:50
  • NetBeans is also visually clear, and not overloaded. This bug will probably be solved very soon. – Joop Eggen Mar 18 '15 at 07:47
  • it also works in netbeans. just not familiar with the menu tree and shortcuts. – Ray Tayek Mar 18 '15 at 07:51
  • @RayTayek If you want eclipse shortcuts in netbeans, you can go to `Tools -> Options -> Keymap`, then there will be a dropdown menu called `Profile`, at the top of the dialog. Select eclipse, and most of the eclipse shortcuts will work :) Thought it might be useful in the future – Balázs Édes Apr 21 '15 at 04:56
  • @ bali182, thanks. that's good to know. i found a workaround though with mars m6: see edit3 in the question. – Ray Tayek Apr 22 '15 at 01:23

0 Answers0