Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[NetBeans] Problem in executing project.

 
Claude Moore
Ranch Hand
Posts: 805
7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all,

I'm encountered a strange problem with a project developed in NetBeans 7.2.

After a while seems that Netbeans gets corrupted, and when I try to run my project i run into following error

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file xyz

where xyz is a class of mine own, and there's absolutely nothing wrong with it: indeed, if I uninstall NetBeans, reinstall it,
the very same project can be build without any modifications.

On the web I read some guy's posts regarding this issue, but it seems that there is not an effective solution.
The only workaround, besides of re-installing NetBeans, seems to uncheck "compile on save options". Indeed it works,
but I'd prefer to continue using compile on save feature -- it's very usefull for me.

Any hints ?
Regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic