From: <php...@li...> - 2006-10-06 16:44:08
|
Hi, please excuse the delay. > > The problem occurs when I try to convert the java > > code > > Class.forName("com.mysql.jdbc.Driver"); > > and the "getConnection" into corresponding > php-code. > > Class.forName("name") loads name from the bootstrap classloader, so java_require() has no effect. -- One could expect that some default class loader, for example the class loader from the current Thread context is used. But in many areas Java simply doesn't work as one would expect. Please either use Class.forName with an explicit classLoader argument (you can obtain the current class loader from the current Thread) or simple use: new Java("name); instead. Btw: Your .ini entry java.classpath=foo.jar;bar.jar probably didn't work because the above semi-colon starts an one-line comment. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |