AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Classpath MySQL Connector

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Whisky
Guest





PostPosted: Fri Nov 21, 2003 8:13 pm    Post subject: Classpath MySQL Connector Reply with quote



SET PATH=C:WINDOWS;C:WINDOWSCOMMAND;C:j2sdk1.4.1_01bin;C:MSSQL7BINN
SET windir=C:WINDOWS
SET winbootdir=C:WINDOWS
SET COMSPEC=C:WINDOWSCOMMAND.COM
SET PROMPT=$p$g
SET TEMP=C:WINDOWSTEMP
SET TMP=C:WINDOWSTEMP
SET CLASSPATH=.;C:j2sdk1.4.1_01libtools.jar


How do I set up my Autoexe.bat with
mysql-connector-java-3.0.9-stable-bin.jar

=)
Erik




Back to top
Christophe Vanfleteren
Guest





PostPosted: Fri Nov 21, 2003 8:32 pm    Post subject: Re: Classpath MySQL Connector Reply with quote



Whisky wrote:

Quote:
SET PATH=C:WINDOWS;C:WINDOWSCOMMAND;C:j2sdk1.4.1_01bin;C:MSSQL7BINN
SET windir=C:WINDOWS
SET winbootdir=C:WINDOWS
SET COMSPEC=C:WINDOWSCOMMAND.COM
SET PROMPT=$p$g
SET TEMP=C:WINDOWSTEMP
SET TMP=C:WINDOWSTEMP
SET CLASSPATH=.;C:j2sdk1.4.1_01libtools.jar


How do I set up my Autoexe.bat with
mysql-connector-java-3.0.9-stable-bin.jar

=)
Erik

Just add the jar to your classpath var:

SET CLASSPATH=.;C:j2sdk1.4.1_01libtools.jar;c:
pathtomysql-connector-java-3.0.9-stable-bin.jar

Be sure to type it on one line though :)

--
Regards,
Christophe Vanfleteren

Back to top
Whisky
Guest





PostPosted: Fri Nov 21, 2003 8:58 pm    Post subject: Re: Classpath MySQL Connector Reply with quote



c:
Quote:
pathtomysql-connector-java-3.0.9-stable-bin.jar

you added: pathto, is that correct?

I'm very greatful for the help - new at this whit Java. And I now, always
bite of more than I can chew. =) But I must see things in place and start
from there. Normaly use Cobol II with DL1 and DB2.

=)
/ERIK

"Christophe Vanfleteren" <c.v4nfl3t3r3n (AT) pandora (DOT) be> skrev i meddelandet
news:dDuvb.35758$9A3.1082414 (AT) phobos (DOT) telenet-ops.be...
Quote:
Whisky wrote:

SET
PATH=C:WINDOWS;C:WINDOWSCOMMAND;C:j2sdk1.4.1_01bin;C:MSSQL7BINN
SET windir=C:WINDOWS
SET winbootdir=C:WINDOWS
SET COMSPEC=C:WINDOWSCOMMAND.COM
SET PROMPT=$p$g
SET TEMP=C:WINDOWSTEMP
SET TMP=C:WINDOWSTEMP
SET CLASSPATH=.;C:j2sdk1.4.1_01libtools.jar


How do I set up my Autoexe.bat with
mysql-connector-java-3.0.9-stable-bin.jar

=)
Erik

Just add the jar to your classpath var:

SET CLASSPATH=.;C:j2sdk1.4.1_01libtools.jar;c:
pathtomysql-connector-java-3.0.9-stable-bin.jar

Be sure to type it on one line though :)

--
Regards,
Christophe Vanfleteren



Back to top
Christophe Vanfleteren
Guest





PostPosted: Fri Nov 21, 2003 9:24 pm    Post subject: Re: Classpath MySQL Connector Reply with quote

Whisky wrote:

Quote:
c:
pathtomysql-connector-java-3.0.9-stable-bin.jar

you added: pathto, is that correct?

Its not very clear, but I added the path to your jarfile (substitute with yor

real path to the jar ofcourse Smile. You have to seperate different entries
with the ; character.

So you'd get

CLASSPATH=.;c:pathtoxxx.jar;c:pathtoother.jar

As an alternative, you can define your classpath when running your class like
this:

java -cp .;c:pathtoxxx.jar SomeClassYouWantToRun

--
Regards,
Christophe Vanfleteren

Back to top
nigel salt
Guest





PostPosted: Sat Nov 22, 2003 8:44 am    Post subject: Re: Classpath MySQL Connector Reply with quote

An alternative is to unpack the mysql jar file to the folder your
program is in so that com and org are subdirectories of your folder
then you can dispense with classpath altogether as the JVM will simply
pick up the classes from their folders.

Nigel
"Whisky" <made_of_steel (AT) hotmail (DOT) com> wrote

Quote:
c:
pathtomysql-connector-java-3.0.9-stable-bin.jar

you added: pathto, is that correct?

I'm very greatful for the help - new at this whit Java. And I now, always
bite of more than I can chew. =) But I must see things in place and start
from there. Normaly use Cobol II with DL1 and DB2.

=)
/ERIK

"Christophe Vanfleteren" <c.v4nfl3t3r3n (AT) pandora (DOT) be> skrev i meddelandet
news:dDuvb.35758$9A3.1082414 (AT) phobos (DOT) telenet-ops.be...
Whisky wrote:

SET
PATH=C:WINDOWS;C:WINDOWSCOMMAND;C:j2sdk1.4.1_01bin;C:MSSQL7BINN
SET windir=C:WINDOWS
SET winbootdir=C:WINDOWS
SET COMSPEC=C:WINDOWSCOMMAND.COM
SET PROMPT=$p$g
SET TEMP=C:WINDOWSTEMP
SET TMP=C:WINDOWSTEMP
SET CLASSPATH=.;C:j2sdk1.4.1_01libtools.jar


How do I set up my Autoexe.bat with
mysql-connector-java-3.0.9-stable-bin.jar

=)
Erik

Just add the jar to your classpath var:

SET CLASSPATH=.;C:j2sdk1.4.1_01libtools.jar;c:
pathtomysql-connector-java-3.0.9-stable-bin.jar

Be sure to type it on one line though :)

--
Regards,
Christophe Vanfleteren

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.