| View previous topic :: View next topic |
| Author |
Message |
Whisky Guest
|
Posted: Fri Nov 21, 2003 8:13 pm Post subject: Classpath MySQL Connector |
|
|
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
|
Posted: Fri Nov 21, 2003 8:32 pm Post subject: Re: Classpath MySQL Connector |
|
|
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
|
Posted: Fri Nov 21, 2003 8:58 pm Post subject: Re: Classpath MySQL Connector |
|
|
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
|
Posted: Fri Nov 21, 2003 9:24 pm Post subject: Re: Classpath MySQL Connector |
|
|
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 . 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
|
Posted: Sat Nov 22, 2003 8:44 am Post subject: Re: Classpath MySQL Connector |
|
|
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 |
|
 |
|