• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch Almer Thie
 
reply
    Bookmark Topic Watch Topic
  • New Topic