Hello Matt, So, as this does not work, I fear the jar packet got corrupted.
Could you please tell where you got it/download it again? Regards Alexander Schr�der SAP DB,SAP Labs Berlin > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 02, 2004 5:41 PM > To: Schroeder, Alexander; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: Jdbc: ClassNotFoundException > > I cannot get that to print a version number on either PC. > Java version 1.4.2 > > Thanks, > Matt > > -----Original Message----- > From: Schroeder, Alexander [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 02, 2004 12:38 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: Jdbc: ClassNotFoundException > > > Could you try a > > java -jar sapdbc.jar -V > > on the driver. If that works and does print a version number, > there must be > something wrong with your class path setting. > > What version of Java are you running? > > Regards > Alexander Schr�der > SAP DB, SAP Labs Berlin > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Monday, November 01, 2004 10:39 PM > > To: [EMAIL PROTECTED] > > Subject: Jdbc: ClassNotFoundException > > > > I can run this fine on the PC that has the database installed > > on it. When I > > move the class file and the sapdbc.jar file to another pc, I get: > > java.lang.ClassNotFoundException: com.sap.dbtech.jdbc.DriverSapDB > > > > import java.sql.*; > > public class Hello { > > public static void main(String args[]) { > > try{ > > Class.forName ("com.sap.dbtech.jdbc.DriverSapDB"); > > } > > catch(ClassNotFoundException ee ){ > > System.out.println("ERROR:"); > > System.out.println(ee); > > } > > } > > } > > (I know this code should do nothing... it's just trying to > > get the driver > > loaded and even that is failing.) > > I have tried putting both files in c:\temp\java then specifying the > > classpath. > > Java -classpath c:\temp\java\sapdbc.jar;. Hello > > I have put the jar in the c:\j2sdk1.4.2\jre\lib\ext dir and > > specified it in > > the path as well. > > > > > > > -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]
