B
bo_kid
Hello all,
I'm currently working under Eclipse and I've created a jar file,
test.jar.
This jar file needs an extenal jar, let's say c:\ext.jar, to be able to
run. (It runs ok in Eclipse).
Because ext.jar can only/must be accessed with an absolute path, I
can't use the Class-Path header in the manifest. This is correct right?
So I try with to use the the -cp command parameter:
java -cp c:\ext.jar -jar test.jar
But this doesn't work! It seems like ext.jar isn't on the path!
I've read somewhere that when using the -jar parameter all classpath
parameters are ignored, is this correct?
If this is the case, how can I access the external jar file?
How do Eclipse do when it runs my jar-file?
Thanks for any clues!
/Kid
I'm currently working under Eclipse and I've created a jar file,
test.jar.
This jar file needs an extenal jar, let's say c:\ext.jar, to be able to
run. (It runs ok in Eclipse).
Because ext.jar can only/must be accessed with an absolute path, I
can't use the Class-Path header in the manifest. This is correct right?
So I try with to use the the -cp command parameter:
java -cp c:\ext.jar -jar test.jar
But this doesn't work! It seems like ext.jar isn't on the path!
I've read somewhere that when using the -jar parameter all classpath
parameters are ignored, is this correct?
If this is the case, how can I access the external jar file?
How do Eclipse do when it runs my jar-file?
Thanks for any clues!
/Kid