This is a java question I have relating to Du 4.0D and JDK 1.1.5.
I have a simple database application created with Borlands JBuilder.
I moved the source files to the Alpha, made a couple minor changes
and compiled the java source on the Alpha using javac. I can run
this application that I compiled on the Alpha from my PC with no problems.
When the same application runs on the Alpha the frame opens as expected,
but I also get an error, "No suitable driver". The application should
connect to an Oracle database on the Alpha.
I realized I was missing class111.zip (oracle) in my CLASSPATH. I could
duplicate the same error ("No suitable driver), on my PC by removing
class111.zip my CLASSPATH.
Unfortunately, adding class111.zip to my CLASSPATH on the Alpha, did not
solve my problem. When the application runs now, it doesn't even get
far enough to open the frame.
jackb_at_pgw6.picker.com [362] java Application1
java.lang.NullPointerException
at borland.jbcl.view.HeaderView.paint(Compiled Code)
at borland.jbcl.view.HeaderView.repaintItems(Compiled Code)
at borland.jbcl.view.HeaderView.setOffset(Compiled Code)
at borland.jbcl.view.GridView.adjustScrollbars(Compiled Code)
at borland.jbcl.view.GridView.doLayout(Compiled Code)
at java.awt.Container.validateTree(Compiled Code)
at java.awt.Container.validateTree(Compiled Code)
at java.awt.Container.validateTree(Compiled Code)
at java.awt.Container.validate(Compiled Code)
at java.awt.Window.show(Compiled Code)
at java.awt.Component.show(Compiled Code)
at java.awt.Component.setVisible(Compiled Code)
at Application1.<init>(Compiled Code)
at Application1.main(Compiled Code)
HANGS HERE ...
So if I remove class111.zip from my CLASSPATH the java application runs,
opens a frame, but can't connect to Oracle. If I add, class111.zip to
the CLASSPATH the application gets no where.
The JDBC Driver Class Name is oracle.jdbc.driver.OracleDriver
The JDBC URL is jdbc:oracle:thin:_at_myhost:my_oracle_sid
My CLASSPATH is currently set like so:
echo $CLASSPATH
/usr/lib/classes.zip:/usr/lib/jbuilder/jbcl.zip:/usr/lib/jbuilder/jgl.zip:.
Can anyone provide me with some suggestions?
Thanks,
Jack
Received on Fri Jun 05 1998 - 21:29:20 NZST