• 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

Strange error at JScrollPane jScroll = new JScrollPane();

 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It always works but today I got this error at this statement:
JScrollPane jScroll = new JScrollPane();
Any ideas?
Thanks.
java.lang.ClassFormatError: Unknown constant tag in .class file
at sun.awt.image.OffScreenImage.createGraphics(Unknown Source)
at sun.awt.image.OffScreenImage.initBackground(Unknown Source)
at sun.awt.image.OffScreenImage.<init>(Unknown Source)
at sun.awt.windows.WComponentPeer.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at javax.swing.plaf.metal.BumpBuffer.<init>(Unknown Source)
at javax.swing.plaf.metal.MetalBumps.createBuffer(Unknown Source)
at javax.swing.plaf.metal.MetalBumps.setBumpColors(Unknown Source)
at javax.swing.plaf.metal.MetalBumps.<init>(Unknown Source)
at javax.swing.plaf.metal.MetalScrollBarUI.installDefaults(Unknown Source)
at javax.swing.plaf.basic.BasicScrollBarUI.installUI(Unknown Source)
at javax.swing.JComponent.setUI(Unknown Source)
at javax.swing.JScrollBar.updateUI(Unknown Source)
at javax.swing.JScrollBar.<init>(Unknown Source)
at javax.swing.JScrollBar.<init>(Unknown Source)
at javax.swing.JScrollPane$ScrollBar.<init>(Unknown Source)
at javax.swing.JScrollPane.createVerticalScrollBar(Unknown Source)
at javax.swing.JScrollPane.<init>(Unknown Source)
at javax.swing.JScrollPane.<init>(Unknown Source)
at XML2JTree1$1.<init>(XML2JTree1.java:51)
at XML2JTree1.<init>(XML2JTree1.java:51)
at XML2JTree1.main(XML2JTree1.java:319)
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi bruce,
It must be a problem with your class itself.because this exception is Thrown when the Java Virtual Machine attempts to read a class file and determines that the file is malformed or otherwise cannot be interpreted as a class file.
hope this info helps you,
madhav
 
reply
    Bookmark Topic Watch Topic
  • New Topic