I get the same thing.
$ trang -I xml -O rng ~/public_html/linux/usb_ubuntu_9.04RC/index.xhtml junk.rng
Exception in thread "main" java.lang.NullPointerException
at org.relaxng.datatype.helpers.DatatypeLibraryLoader$Service$Loader2.getResources(libgcj_bc.so.1)
at org.relaxng.datatype.helpers.DatatypeLibraryLoader$Service.<init>(libgcj_bc.so.1)
at org.relaxng.datatype.helpers.DatatypeLibraryLoader.<init>(libgcj_bc.so.1)
at com.thaiopensource.relaxng.input.xml.Inferrer.infer(trang)
at com.thaiopensource.relaxng.input.xml.XmlInputFormat.load(trang)
at com.thaiopensource.relaxng.input.AbstractMultiInputFormat.load(trang)
at com.thaiopensource.relaxng.translate.Driver.doMain(trang)
at com.thaiopensource.relaxng.translate.Driver.main(trang)
ii trang 20030619-6.1 Multi-format XML schema converter based on R
ii libgcj-bc 4.3.3-1ubuntu1 Link time only library for use with gcj
ii libgcj9-0 4.3.3-5ubuntu4 Java runtime library for use with gcj
I get the same thing. html/linux/ usb_ubuntu_ 9.04RC/ index.xhtml junk.rng NullPointerExce ption datatype. helpers. DatatypeLibrary Loader$ Service$ Loader2. getResources( libgcj_ bc.so.1) datatype. helpers. DatatypeLibrary Loader$ Service. <init>( libgcj_ bc.so.1) datatype. helpers. DatatypeLibrary Loader. <init>( libgcj_ bc.so.1) rce.relaxng. input.xml. Inferrer. infer(trang) rce.relaxng. input.xml. XmlInputFormat. load(trang) rce.relaxng. input.AbstractM ultiInputFormat .load(trang) rce.relaxng. translate. Driver. doMain( trang) rce.relaxng. translate. Driver. main(trang)
$ trang -I xml -O rng ~/public_
Exception in thread "main" java.lang.
at org.relaxng.
at org.relaxng.
at org.relaxng.
at com.thaiopensou
at com.thaiopensou
at com.thaiopensou
at com.thaiopensou
at com.thaiopensou
$ ls -lgF /usr/lib/ libgcj_ bc.so.1 libgcj_ bc.so.1 -> libgcj.so.90
lrwxrwxrwx 1 root 12 2009-04-28 12:57 /usr/lib/
ii trang 20030619-6.1 Multi-format XML schema converter based on R
ii libgcj-bc 4.3.3-1ubuntu1 Link time only library for use with gcj
ii libgcj9-0 4.3.3-5ubuntu4 Java runtime library for use with gcj
libgcj-bc: /usr/lib/ libgcj_ bc.so.1 gcj-4.3- 90/libgcj_ bc.so.1
libgcj9-0: /usr/lib/
Was it incorrectly compiled to use the link time only lib? Looks like it: f000) d000) libgcj_ bc.so.1 (0x00007fe76037 d000) 8000) .so.0 (0x00007fe75fed c000) 4000) c000) 8000) 6000) ld-linux- x86-64. so.2 (0x00007fe7634c 5000)
$ ldd /usr/bin/trang
linux-vdso.so.1 => (0x00007fff6b7f
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fe7632a
libgcj_bc.so.1 => /usr/lib/
libm.so.6 => /lib/libm.so.6 (0x00007fe7600f
libpthread.so.0 => /lib/libpthread
librt.so.1 => /lib/librt.so.1 (0x00007fe75fcd
libz.so.1 => /lib/libz.so.1 (0x00007fe75fab
libdl.so.2 => /lib/libdl.so.2 (0x00007fe75f8b
libc.so.6 => /lib/libc.so.6 (0x00007fe75f54
/lib64/
However, the following workaround doesn't work: PATH=/usr/ lib/gcj- 4.3-90/ :/usr/lib: /lib trang -I xml -O rng ~/public_ html/linux/ usb_ubuntu_ 9.04RC/ index.xhtml junk.rng
LD_LIBRARY_
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty