I'm trying to run a jar file - let it use test.jar, which uses Sybase jconn3.jar on a Unix system.
I created a MANIFEST.MF file that has the following:
Class-Path: $SYBASE/jConnect-6_0/classes/jconn3.jar commons-net-1.3.0.jar
This gives a ClassNotFoundError. $ SYBASE - a system variable pointing to / opt / sybase 13; I also tried the following:
Class-Path: /opt/sybase13/jConnect-6_0/classes/jconn3.jar commons-net-1.3.0.jar
and
Class-Path: opt/sybase13/jConnect-6_0/classes/jconn3.jar commons-net-1.3.0.jar
However, if I copy the jconn3.jar file from the $ SYBASE / jConnect-6_0 / classes to the same directory as test.jar, and update my MANIFEST.MF file as follows:
Class-Path: jconn3.jar commons-net-1.3.0.jar
The application works as expected.
Now I was able to check if the jconn3.jar file was working by copying it locally; my MANIFEST.MF file includes the path to my main class, so no problem here.
What do you think, maybe the problem? I have been looking at this thing for too long. Thanks!
Tim
source share