• Post Reply Bookmark Topic Watch Topic
  • New Topic

Caused by: java.lang.ClassFormatError: Illegal class modifiers in class  RSS feed

 
Steven Rodeo
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Folks,

I got a new package from our build system. When I try using it, I keep getting Java.lang.ClassFormatError exception,

Caused by: java.lang.ClassFormatError: Illegal class modifiers in class com/abc/def/manager/client/package-info: 0x1600


I google this error up, google bought me more confusion than pinpointing the problem.

Please advice on the various things I should be looking at

Any help Appreciated

Thanks Much
_ S M
 
Rob Spoor
Sheriff
Posts: 21133
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
https://jaxb.dev.java.net/guide/Runtime_Errors.html#Illegal_class_modifiers_for_package_info__0x1600

There is a little explanation at the bottom that seems to be relevant.
 
Almer Thie
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That link from Rob really helped me out. Thanks.

I'd like to add that it's fixed from at least JDK1.6.0_16 (but perhaps some version before). So you can use the newest available JDK and it should work.

I had this problem because in my Eclipse's Ant preferences I had a reference to an older version (JDK1.6.0_05) tools.jar under Global Entries.
 
Campbell Ritchie
Marshal
Posts: 56533
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch Almer Thie
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!