From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078712011490.tru64-unix-managers.marc@archive.invalid> From: jackb () pgw ! picker ! com Date: Fri, 05 Jun 1998 19:29:35 +0000 To: tru64-unix-managers Subject: Java Question (jdbc connectivity) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078712011490 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@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.(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:@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