I have written a small Java swing app, it runs from a self executing Jar file but at this point will not run on my contractors machines. It relies on an external jar (imageio.jar) which I have placed in his jre/lib/ext/ directory (the same as on the 15 machines it dows work on) but it still fails. I have tried adding the directory to the classpath and also path variables, no help, I have run out of ideas.
Possibly a stupid question, but what is the actual error message that you're seeing when you try to run the app?
EDIT: Just to clarify, I meant that my question is possibly stupid, not yours [ January 13, 2008: Message edited by: David Payne ]
Joined: Aug 03, 2007
There are no stupid questions only stupid answers *grin*
I do not see any errors, the program fails where it should be creating an Imagereader and just sits there for eternity.
I did see this behaviour on a dev machine, it was resolved when the imageio.jar was placed in the classpath. I am guilty of assuming this is the same problem as it exhibits the same symptoms.
Joined: Jan 31, 2006
Strange - I'd have expected you to see a 'NoClassDefFoundError' if it was that the JAR was missing from the class path - have you tried accessing a different class from the same JAR?
Plucking one at random from the Java API, what about just calling ImageIO.getUseCache() - that seems like a fairly trivial method, which returns a boolean. If you get the boolean back, you'll know that the JAR file is OK.
Sorry it's not an answer, but maybe it will help... slightly?