B
balgach
Hello all,
I am trying to jar up my classes for easy access, the problem is as
follows...
my application depends on teh postgresql jdbc driver (pg73jdbc.jar)
now when i compile and run as classes with this jar file in the
CLASSPATH, everythign works fine all well and good. When i jar the
classes up, i get a ClassNotFound Exception when looking for the JDBC
drivers. (even though it is in my class path)
ive even tried:
java -jar myapp.jar pg73jdbc.jar
and get the same errors. is there something i am missing when creating
the jar file? can i somehow include the pg73jdbc.jar file with my jar
file, to just have one large jar file? Thanks.
Cheers,
Adam.
I am trying to jar up my classes for easy access, the problem is as
follows...
my application depends on teh postgresql jdbc driver (pg73jdbc.jar)
now when i compile and run as classes with this jar file in the
CLASSPATH, everythign works fine all well and good. When i jar the
classes up, i get a ClassNotFound Exception when looking for the JDBC
drivers. (even though it is in my class path)
ive even tried:
java -jar myapp.jar pg73jdbc.jar
and get the same errors. is there something i am missing when creating
the jar file? can i somehow include the pg73jdbc.jar file with my jar
file, to just have one large jar file? Thanks.
Cheers,
Adam.