Henrik Krobath Olesen wrote:
> Hi,
>
> I'm having some problems configuring my Java
> programs to use the mm.Mysql jdbc driver. I've
> searched through the mailing list archive but it
> hasn't helped me to overcome my problem. It al
> comes down to the definition of my classpath
> to which I have to add the path to the mm.MySql
> library. In the JDK 1.2.2 release no classpath is
> configured and I can't seem to find the
> classes.zip file containing all the java classes.
> How do I come about this problem?
>
There is no more classes.zip in JDK1.2. This is now replaced by rt.jar
which can be found in $JAVA_HOME/jre/lib.
You can still specify a CLASSPATH if you want, though it is no longer
necessary to specify the standard classes which are located in rt.jar (or
any standard extensions you have installed).
If the Mysql JDBC driver is distributed in a jar then add the name of the
jar to your classpath. For example, if the jdbc driver is distributed as
mysql.jar then try:
CLASSPATH=.:/usr/jdk/mm.Mysql-1.2a/mysql.jar
This will allow you to compile/run classes from your current directory
which use the JDBC driver found in your path.
You might also look at the "java -cp" option as an alternative to setting
a classpath.
This is all documented in the standard JDK1.2 docs.
Good luck.
--
David Marshall email: [EMAIL PROTECTED]
VM Systems, Inc. phone: 1-941-596-2480
Naples, FL USA fax: 1-941-596-2483
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]