From: <php...@li...> - 2008-08-21 16:38:43
|
Hello. This may be a little off topic, but I am hoping someone on the list has run into this same problem and can enlighten me. I apologize in advance as I am fairly new to Java. On an Ubuntu 7.1 LAMP server. I have created a Java object for accessing an MS Sql Server server from Java. When I run it from the command line, it runs fine. When I run it from PHP through the JavaBridge, it cannot find the SQLServerDriver Unresolved external reference: java.lang.NoClassDefFoundError: com/microsoft/jdbc/sqlserver/SQLServerDriver. -- Unable to call constructor, see the README section "Java platform issues" for details. The resolution I am finding on the Internet indicates that this is because the package is not in the CLASSPATH. The driver is in mssqlserver.jar 731 Thu Nov 21 16:35:04 CST 2002 com/microsoft/jdbc/sqlserver/SQLServerDriver.class which is in my CLASSPATH as cshaffer. But when it is run from PHP through the Bridge, it is apparently not in the CLASSPATH. So who is running it in that case and how do I effect the CLASSPATH? Or can I use an import to force it? Is there a trick to this? Charles Shaffer Senior Analyst NTN-Bower Corporation |