Hi all,
I'm trying to use a Java API for a postgres DB in a PHP interface. I know that sounds weird, but rewriting the whole API in PHP would be huge task.
I've written a java class that calls the relevant classes of the API for different task, and that works ok when I run it using java in command line. However, when I try to call it through my PHP script, I get an error (in error.log):
Loading driver error: java.lang.ClassNotFoundException: org.postgresql.Driver
🙂 To avoid obvious answers, yes, the jdbc.jar is in the java.class.path.
It looks as though the java.class.path is used when calling my own class, but lost for my class to call the other classes...
Any Ideas ?