Thanks Harald, you're right. It does work under jdk 1.2 (2.0).
For the original question asker here are the .bat files I used to invoke
twz under jdk1.2 (2.0) on a Windows machine.
First I unzipped twz's .zip package to \jdk1.2\bin . That means the
twz1 dir sits in the \bin subdir of jdk1.2. Under it will be the \jdbc and
\noopt dir's. Following the directions on twz's web page I directed my
test to use the version in the \noopt dir.
Then I went into \jdk1.2\bin\twz1\jdbc\mysql\test and made the following
two .bat files. This one invokes the compiler:
javac -classpath c:\jdk1.2\bin\twz1\noopt jdbctest1.java
This one invokes java itself to run the program:
java -classpath c:\jdk1.2\bin\twz1\noopt;. jdbctest1
Notice the ;. at the end of the classpath. It won't run without that.
Don't know why.
Here is the properties file I used:
#debugFile=testdebug
#cacheMode=disk
debugRead=true
debugWrite=true
#multipleQuery=false
user=root
host=10.1.1.1
password=password
db=jdbctest
At 12:31 PM 4/22/99 +0200, Harald Schlang wrote:
>The latest version of twz works with Java 1.2, as long as you use the
>compiled classes from the /noopt directory.
>
>Harald Schlang
>
>-----Ursprüngliche Nachricht-----
>Von: Jim Ridenour <jridenou@stripped>
>An: rthomp41@stripped <rthomp41@stripped>; java@stripped
><java@stripped>
>Datum: Donnerstag, 22. April 1999 14:15
>Betreff: Re: mysql & jdbc drivers
>
>
>> As far as I know twz only works with Java versions prior to 1.2.
>>
>>
>>
>>
>>
>>At 04:48 PM 4/21/99 -0400, Robert H. Thompson wrote:
>>>I am having a problem with the twz1FM and mm.mysql jdbc drivers for
>>>the MySql database. At home I have red hat linux 5.2 kernel 2.0.36
>>>with the latest mysql and twz1ForMysql driver and mm.mysql driver.
>>>and the blackdown jdk1.2 port.
>>>
>>>1) I explicitly compile with:
>>>
>>> javac -classpath /mysql/twz1/twz1ForMysql.jar jdbctest1.java
>>>
>>> and the program compiles fine.
>>>
>>> I try to run it with:
>>>
>>> java jdbctest1
>>>
>>> and I get java NoClassDefFound Error
>>>
>>> what am I missing here?
>>>
>>>I really appreciate the help - I am trying to evaluate mysql with a
>>>possible java applet/application development project.
>>>
>>>Thanks for your (any) prompt response. BTW - how do you subscribe to
>>>this list in digest mode?
>>>
>>>Rob Thompson
>>>
>>>home: rthom40065@stripped
>>>work: rthomp41@stripped
>>>
>>>Please send any personal reply to the home email address
>>>
>>>---------------------------------------------------------------------
>>>Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
>>>posting. To request this thread, e-mail java-thread43@stripped
>>>
>>>To unsubscribe, send a message to the address shown in the
>>>List-Unsubscribe header of this message. If you cannot see it,
>>>e-mail java-unsubscribe@stripped instead.
>>>
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
>>posting. To request this thread, e-mail java-thread47@stripped
>>
>>To unsubscribe, send a message to the address shown in the
>>List-Unsubscribe header of this message. If you cannot see it,
>>e-mail java-unsubscribe@stripped instead.
>>
>
>
>---------------------------------------------------------------------
>Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
>posting. To request this thread, e-mail java-thread49@stripped
>
>To unsubscribe, send a message to the address shown in the
>List-Unsubscribe header of this message. If you cannot see it,
>e-mail java-unsubscribe@stripped instead.
>
>
>