steve_bagnall
asked on
jt400.jar not found when packaged in jar
I have an executable jar file with jt400.jar packaged within it. I can run this application on the server where it is to be deployed and I get a "java.lang.NoClassDefFound Error: com/ibm/as400/access/AS400 JDBCDriver " exception (AS400JDBCDriver is a class within jt400.jar). However, when I run this on my development machine I get no such error. It seems that this is because there is another copy of JT400.jar on that machine and it has an entry in the CLASSPATH. Without modifying the classpath of the target machine, how do I make sure that the class files packaged within a jar packaged within another jar can be seen, if you see what I mean?
Cheers Steve.
Cheers Steve.
ASKER
It maybe in this case, but I am deplying this using WebStart so I would like the whole application to be in one jar file. Are you saying this is not possible?
Cheers,
Steve
Cheers,
Steve
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Tim,
Will I still need to modify the manifest file doing it this way?
Will I still need to modify the manifest file doing it this way?
I don't believe so...
(I may be wrong, but I really don't believe so)...
:-/
We're on the fringes of my knowledge here ;-)
(I may be wrong, but I really don't believe so)...
:-/
We're on the fringes of my knowledge here ;-)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What would you recommend objects? (you're knowledge of JWS is probably greater than mine)...
Seperate jars with jt400 defined in the resources block of the jnlp file, or a single combined jar?
Seperate jars with jt400 defined in the resources block of the jnlp file, or a single combined jar?
ASKER
Tim, I used your solution, and objects looks interesting so I split the points. Hope everyone's OK with that :)
Cheers,
Steve
p.s it works at last! :)
Cheers,
Steve
p.s it works at last! :)
no worries :-)
>> p.s it works at last! :)
Yay!! :-D
Good luck!
Tim
>> p.s it works at last! :)
Yay!! :-D
Good luck!
Tim
Class-Path: jt400.jar
to your manifest?