Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via xmlgraphics-batik-users by Simon Mittermüller, 1 year ago
Found interface com.sun.image.codec.jpeg.JPEGImageEncoder, but class was expected at org .apache .batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage
java.lang.IncompatibleClassChangeError: Found interface  
com.sun.image.codec.jpeg.JPEGImageEncoder, but class was expected
	at  
org 
.apache 
.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown  
Source)
	at  
org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown  
Source)
	at  
org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown  
Source)
	at  
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown  
Source)
	at  
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown  
Source)
    at experimentalcode.simon.gui.PatternPlot.saveAsJPEG(PatternPlot.java: 564)
    at experimentalcode.simon.gui.PatternControlPanel $ImageSaveDialog.actionPerformed(PatternControlPanel.java:494)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java: 2028)
    at javax.swing.AbstractButton $Handler.actionPerformed(AbstractButton.java:2351)
	at  
javax 
.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java: 
387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java: 242)
	at  
javax 
.swing 
.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java: 
236)	at java.awt.Component.processMouseEvent(Component.java:6126)	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)	at java.awt.Component.processEvent(Component.java:5891)	at java.awt.Container.processEvent(Container.java:2102)	at java.awt.Component.dispatchEventImpl(Component.java:4497)	at java.awt.Container.dispatchEventImpl(Container.java:2160)	at java.awt.Component.dispatchEvent(Component.java:4327)