(dsssl) jxrtf error - "no Teddy in java.library.path"

Subject: (dsssl) jxrtf error - "no Teddy in java.library.path"
From: "Spenser Kao" <SpenserKao@xxxxxxxxxxxxxxxx>
Date: Tue, 22 Apr 2003 02:14:04 +1000
Hi, 

Hope this is the mailing list as close as I can find to get some help
regarding jxrtf - Java XML to RTF.

I was trying to test jxrtf under Window2000 in batch (command) mode to
convert a xml test file to rtf but received "no Teddy in
java.library.path" error.

I set the classpath to cover the jars of xalan, xerces and jxrtf, and
placed libTeddy.so at the installation dir of jxrtf, followed by
command: 

java -Djava.library.path=. RtfBuilder tests/sol.rtf tests/style.xml
tests/exemple.xml 

Then I received following error message: 

%%% //// / Getting inpara havin the value:1 
%%% Image to RTF format using Teddy! 
Exception in thread "main" java.lang.UnsatisfiedLinkError: 
no Teddy in java.library.path 
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410) 
at java.lang.Runtime.loadLibrary0(Runtime.java:772) 
at java.lang.System.loadLibrary(System.java:832) 
at org.gb.rtf.Caller.<clinit>(Caller.java:23) 
at org.gb.rtf.JMLRTFImage.getRtfImage(JMLRTFImage.java:73) 
at org.gb.rtf.JMLRTFImage.<init>(JMLRTFImage.java:49) 
at org.gb.rtf.JMLRTFProducer.setImage(JMLRTFProducer.java:748) 
at RtfBuilder.startImage(RtfBuilder.java:138) 
at RtfBuilder.parse(RtfBuilder.java:162) 
at RtfBuilder.parse(RtfBuilder.java:173) 
at RtfBuilder.parse(RtfBuilder.java:173) 
at RtfBuilder.launchParser(RtfBuilder.java:204) 
at RtfBuilder.main(RtfBuilder.java:214) 

I even tried the -D option as -Djava.library.path=.;.\libTeddy.so, but
the error "no Teddy in java.library.path" remains. 

Any clue will be appreciated! 

Best Regards, 

Spenser



 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist

Current Thread