I am using the postgresql driver to connect to a sql server with java.
It is contained in a jar file that i downloaded form there website.
java -classpath /home/asdf/myProgram;/home/asdf/myProgram/lib/postgresql-9.2-002.jdbc4.jar myMainClass
results in an error:
Failed to load Main-Class manifest attribute from /home/asdf/myProgram/lib/postgresql-9.2-002.jdbc4.jar
the main class is in /home/asdf/myProgram/myMainClas.class
how do i get java to check for that before checking in postgresql-9.2-002.jdbc4.jar
Judging by the path “/home/”, you’re using Linux.
The semi-colon ends your current command and starts a new one.
So, you are effectively typing:
This probably means you have the jexec service running, which is trying to run the postgres jar.
Use colon instead, or maybe backslash-colon, like so: