Oops, forgot to include the list. -----Original Message----- From: Matt Ebert Sent: Wednesday, November 03, 2004 10:00 AM To: Schroeder, Alexander Subject: RE: Jdbc: ClassNotFoundException
I redownloaded it from http://dev.mysql.com/downloads/maxdb/clients.html http://dev.mysql.com/get/Downloads/MaxDB/7.5.00/sapdbc-7_6_00_00_3247.jar/fr om/pick Now I get 7.6.0 from the other pc, and it works! I'm trying to get the same jar to work on UNIX, with much less luck. $ java -jar sapdbc.jar -V -jar: illegal argument Usage: java [-options] class I believe that it is using java version 1.3.1 I also still get the error: java.lang.ClassNotFoundException: com.sap.dbtech.jdbc.DriverSapDB When I try to execute it from UNIX. (AIX) Any ideas here? It seems like a class path, but I am putting the full path to the jar in the classpath. Thanks for all the help. Matt -----Original Message----- From: Schroeder, Alexander [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 12:37 AM To: [EMAIL PROTECTED]; Subject: RE: Jdbc: ClassNotFoundException 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. > > > > > > >
