aspose file tools
The moose likes Java in General and the fly likes External Jar file problems in Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "External Jar file problems in Windows " Watch "External Jar file problems in Windows " New topic
Author

External Jar file problems in Windows

Connie Kam
Greenhorn

Joined: Aug 03, 2007
Posts: 6
Good Afternoon,

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.

Can anyone suggest where I am going wrong here?
Mark Newton
Ranch Hand

Joined: Jan 31, 2006
Posts: 129
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 ]
Connie Kam
Greenhorn

Joined: Aug 03, 2007
Posts: 6
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.

Connie
Mark Newton
Ranch Hand

Joined: Jan 31, 2006
Posts: 129
Hi,

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?

Dave.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: External Jar file problems in Windows
 
Similar Threads
Eclipse JARing
monitor /proc/net/dev
Reading external files from a jar
Peculiar
Accessing jar file in classpath