Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / November 2005

Tip: Looking for answers? Try searching our database.

Classpath Problems

Thread view: 
Brett Kirkness - 15 Nov 2005 21:28 GMT
Hi
I am writing a database app using Java and MySQL
I have downloaded the MySQL connector J files but cannot get Java to find
them.
I keep getting a driver not found error.
There is no info on the MySQL site to say how to fix the problem.
I am running the program on win XP SP2

Regards Brett
klynn47@comcast.net - 15 Nov 2005 21:36 GMT
What you have to do is make sure the .jar file is in the CLASSPATH.
Brett Kirkness - 15 Nov 2005 22:04 GMT
I know the jar file needs to go into the CLASSPATH but cant find where it
is.

> Hi
> I am writing a database app using Java and MySQL
[quoted text clipped - 5 lines]
>
> Regards Brett
klynn47@comcast.net - 15 Nov 2005 22:14 GMT
When you download the driver, it comes in a .zip file. If you look in
the archive, you should find the .jar
Brett Kirkness - 15 Nov 2005 22:47 GMT
I have the jar file but don't know where to put it ie I need the CLASSPATH
details .

> Hi
> I am writing a database app using Java and MySQL
[quoted text clipped - 5 lines]
>
> Regards Brett
Oliver Wong - 15 Nov 2005 22:54 GMT
>I have the jar file but don't know where to put it ie I need the CLASSPATH
>details .
[quoted text clipped - 8 lines]
>>
>> Regards Brett

   Check your environment variables. Right click on "My Computer" and
choose "properties", then select the tab "Advanced" and click on the button
"Environment Variables".

   - Oliver
IchBin - 16 Nov 2005 00:32 GMT
>> I have the jar file but don't know where to put it ie I need the CLASSPATH
>> details .
[quoted text clipped - 14 lines]
>
>     - Oliver

You could just add to the java cmd

java -classpath ..\BlabBlaBlab\BlabBlaBlab.jar

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

Roedy Green - 16 Nov 2005 09:24 GMT
On Tue, 15 Nov 2005 22:47:51 GMT, "Brett Kirkness"
<bkirknes@bigpond.net.au> wrote, quoted or indirectly quoted someone
who said :

>I have the jar file but don't know where to put it ie I need the CLASSPATH
>details .

see http://mindprod.com/jgloss/classpath.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.