Borisvl / JBIG2-Image-Decoder

A fork of JPedal's JBIG2 library
Other
30 stars 24 forks source link

Resource files (images) are not included into Jar #3

Open maxim-kukushkin opened 9 years ago

maxim-kukushkin commented 9 years ago

After building the library with "ant" and trying to run the viewer from the examples, the following exception is thrown:

$ java -cp jbig2.jar org.jpedal.jbig2.examples.viewer.JBIG2Viewer java.lang.NullPointerException at javax.swing.ImageIcon.(ImageIcon.java:217) at org.jpedal.jbig2.examples.viewer.JBIG2Viewer.setUpToolbar(Unknown Source) at org.jpedal.jbig2.examples.viewer.JBIG2Viewer.(Unknown Source) at org.jpedal.jbig2.examples.viewer.JBIG2Viewer.main(Unknown Source)

This happens because the resource files are not added to the output Jar file

maxim-kukushkin commented 9 years ago

I have a patch for build.xml, but cannot find out how to attach it