Hi,
I appreciate your help very much. I am very new at this and am stumbling
through this.
when you say...
>It seems you have forgotten to add the resources directory to your
classpath
do you mean I have forgotten to add the resources directory to my classpath
when I compile SaveAsJPEG.java?
like this...(the contents of batik-src-1.1.1.zip is in my c:\xml-batik
directory)
javac -sourcepath c:\xml-batik\sources -classpath c:\xml-batik\resources
SaveAsJPEG.java
when I run this from my command line, I get these errors. Any help would be
greatly appreciated.
c:\xml-batik\sources\org\apache\batik\transcoder\image\ImageTranscoder.java:
413:
Variable hints in class org.apache.batik.transcoder.TranscoderSupport not
acces
sible from inner class org.apache.batik.transcoder.image.ImageTranscoder.
ImageT
ranscoderUserAgent.
return (String)hints.get(KEY_MEDIA);
^
c:\xml-batik\sources\org\apache\batik\util\SoftDoublyIndexedTable.java:214:
Can'
t reference referenceQueue before the superclass constructor has been
called.
super(value, referenceQueue);
^
c:\xml-batik\sources\org\apache\batik\gvt\AbstractGraphicsNode.java:715:
Method
getListeners(java.lang.Class) not found in class
javax.swing.event.EventListener
List.
return listeners.getListeners(listenerType);
^
c:\xml-batik\sources\org\apache\batik\gvt\TextNode.java:341: class
org.apache.ba
tik.gvt.text.AttributedCharacterSpanIterator is an abstract class. It can't
be i
nstantiated.
o = new AttributedCharacterSpanIterator
^
c:\xml-batik\sources\org\apache\batik\gvt\renderer\StrokingTextPainter.java:
283:
class org.apache.batik.gvt.text.AttributedCharacterSpanIterator is an
abstract
class. It can't be instantiated.
(new AttributedCharacterSpanIterator(aci, i-1, i));
^
c:\xml-batik\sources\org\apache\batik\gvt\renderer\StrokingTextPainter.java:
290:
class org.apache.batik.gvt.text.AttributedCharacterSpanIterator is an
abstract
class. It can't be instantiated.
aciVector.add(new AttributedCharacterSpanIterator
^
c:\xml-batik\sources\org\apache\batik\gvt\renderer\StrokingTextPainter.java:
336:
class org.apache.batik.gvt.text.AttributedCharacterSpanIterator is an
abstract
class. It can't be instantiated.
runaci = new AttributedCharacterSpanIterator(aci, start, end);
^
c:\xml-batik\sources\org\apache\batik\gvt\text\AttributedCharacterSpanIterat
or.j
ava:32: class org.apache.batik.gvt.text.AttributedCharacterSpanIterator must
be
declared abstract. It does not define java.lang.Object
getAttribute(java.text.At
tributedCharacterIterator.Attribute) from interface
java.text.AttributedCharacte
rIterator.
public class AttributedCharacterSpanIterator implements
^
c:\xml-batik\sources\org\apache\batik\gvt\text\AttributedCharacterSpanIterat
or.j
ava:68: Class org.apache.batik.gvt.text.Attribute not found.
public Object getAttribute(Attribute attribute) {
^
c:\xml-batik\sources\org\apache\batik\gvt\text\AttributedCharacterSpanIterat
or.j
ava:69: Class org.apache.batik.gvt.text.Attribute not found in
java.lang.Object
getAttribute(org.apache.batik.gvt.text.Attribute).
return aci.getAttribute(attribute);
^
c:\xml-batik\sources\org\apache\batik\gvt\text\AttributedCharacterSpanIterat
or.j
ava:141: class org.apache.batik.gvt.text.AttributedCharacterSpanIterator is
an a
bstract class. It can't be instantiated.
return new AttributedCharacterSpanIterator(
^
c:\xml-batik\sources\org\apache\batik\gvt\font\AWTGlyphGeometryCache.java:25
6: C
an't reference referenceQueue before the superclass constructor has been
called.
super(value, referenceQueue);
^
c:\xml-batik\sources\org\apache\batik\ext\awt\image\spi\PNGRegistryEntry.jav
a:83
: Variable 't' is already defined in this method.
} catch (Throwable t) {
^
c:\xml-batik\sources\org\apache\batik\ext\awt\image\spi\TIFFRegistryEntry.ja
va:8
5: Variable 't' is already defined in this method.
} catch (Throwable t) {
^
14 errors
-----Original Message-----
From: Thierry Kormann [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 4:47 AM
To: Batik Users
Subject: RE: Error Running Compiled SaveAsJPEG, please help
> I get this error:
> Exception in thread "main" java.lang.ExceptionInInitializerError:
> java.util.MissingResourceException: Can't find bundle for base name
> org.apache.batik.util.resources.XMLResourceDescriptor, locale en_US
> at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
> at java.util.ResourceBundle.getBundleImpl(Unknown Source)
> at java.util.ResourceBundle.getBundle(Unknown Source)
> at
> org.apache.batik.util.XMLResourceDescriptor.<clinit>(XMLResourceDe
> scriptor.j
> ava:45)
> at
> org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbs
> tractTrans
> coder.java:84)
> at SaveAsJPEG.main(SaveAsJPEG.java:22)
It seems you have forgotten to add the resources directory to your classpath
Thierry.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]