Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Classpath Woes ...
Classpath Woes ... [message #165960] Thu, 04 December 2003 13:49 Go to next message
Eclipse UserFriend
I have added the MySQL JAR to my plugin project, I have added a path to
the JAR, I have added the JAR to $JAVA_HOME/jre/lib/ext directory, etc..

I cannot find the class for the driver. I have also looked at the JAR
to be sure that the path com.mysql.jdbc.Driver class is in fact there.

Does Eclipse do anything strange with the CLASSPATH? And, would anyone
know why I can't get this to work. I also tried an Oracle JDBC driver
that I know works elsewhere but when I debug in Eclipse 3M5 I cannot see
the class.

Any suggestions more than welcome,

David
Re: Classpath Woes ... [message #166001 is a reply to message #165960] Thu, 04 December 2003 15:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rhino1.NOSPAM.sympatico.ca

This may not be much help to you but here goes anyway....

You haven't said much about your environment - what OS you are using for
example - but I have mysql-connector-java-3.0.8-stable-bin.jar in my
(Tomcat) $CATALINA_HOME\common\lib and it works fine. This is for our
production server which is running Mandrake 9.1 (Linux) and Tomcat 4.1.24.
We don't have Eclipse on that machine though because we develop on Windows.

On my development machine, which is running Windows XP, I am running using
DB2, not MySQL, and I have Eclipse 2.1.1, not 3.x, but I have my DB2 drivers
(db2java.zip) in an external jar which has been added to my build path in
the Java Build Path/Libraries tab within Preferences. This works fine for
me; I've never had a problem accessing DB2.

Rhino

"David Whitehurst" <dlwhitehurst@comcast.net> wrote in message
news:bqnvho$36e$1@eclipse.org...
> I have added the MySQL JAR to my plugin project, I have added a path to
> the JAR, I have added the JAR to $JAVA_HOME/jre/lib/ext directory, etc..
>
> I cannot find the class for the driver. I have also looked at the JAR
> to be sure that the path com.mysql.jdbc.Driver class is in fact there.
>
> Does Eclipse do anything strange with the CLASSPATH? And, would anyone
> know why I can't get this to work. I also tried an Oracle JDBC driver
> that I know works elsewhere but when I debug in Eclipse 3M5 I cannot see
> the class.
>
> Any suggestions more than welcome,
>
> David
>
Re: Classpath Woes ... [message #166067 is a reply to message #166001] Thu, 04 December 2003 17:03 Go to previous messageGo to next message
Eclipse UserFriend
Rhino:

Thanks, I'll try the external JAR thing. I tried just the JAR tab in
there but it didn't work. Anyhow, I can get a test.java to find the
driver on the command line, just not in Eclipse.

Thanks,

David

Rhino wrote:
> This may not be much help to you but here goes anyway....
>
> You haven't said much about your environment - what OS you are using for
> example - but I have mysql-connector-java-3.0.8-stable-bin.jar in my
> (Tomcat) $CATALINA_HOME\common\lib and it works fine. This is for our
> production server which is running Mandrake 9.1 (Linux) and Tomcat 4.1.24.
> We don't have Eclipse on that machine though because we develop on Windows.
>
> On my development machine, which is running Windows XP, I am running using
> DB2, not MySQL, and I have Eclipse 2.1.1, not 3.x, but I have my DB2 drivers
> (db2java.zip) in an external jar which has been added to my build path in
> the Java Build Path/Libraries tab within Preferences. This works fine for
> me; I've never had a problem accessing DB2.
>
> Rhino
>
> "David Whitehurst" <dlwhitehurst@comcast.net> wrote in message
> news:bqnvho$36e$1@eclipse.org...
>
>>I have added the MySQL JAR to my plugin project, I have added a path to
>>the JAR, I have added the JAR to $JAVA_HOME/jre/lib/ext directory, etc..
>>
>>I cannot find the class for the driver. I have also looked at the JAR
>>to be sure that the path com.mysql.jdbc.Driver class is in fact there.
>>
>>Does Eclipse do anything strange with the CLASSPATH? And, would anyone
>>know why I can't get this to work. I also tried an Oracle JDBC driver
>>that I know works elsewhere but when I debug in Eclipse 3M5 I cannot see
>>the class.
>>
>>Any suggestions more than welcome,
>>
>>David
>>
>
>
>
Re: Classpath Woes ... [message #166260 is a reply to message #166067] Fri, 05 December 2003 04:22 Go to previous message
Eclipse UserFriend
Originally posted by: javibasi.yahoo.es

Hi David.

I'm not so sure what you mean with "I have added it to my project". I
guess you added it in the classpath. I'm not sure which is your exact
problem, but I think that if it's a driver, it should be included as
runtime library instead of being in the classpath, and copied to the
plugin install directory.

At least, that's what I use to do

Cheers.

Dian Cecht.


David Whitehurst wrote:

> Rhino:

> Thanks, I'll try the external JAR thing. I tried just the JAR tab in
> there but it didn't work. Anyhow, I can get a test.java to find the
> driver on the command line, just not in Eclipse.

> Thanks,

> David

> Rhino wrote:
> > This may not be much help to you but here goes anyway....
> >
> > You haven't said much about your environment - what OS you are using for
> > example - but I have mysql-connector-java-3.0.8-stable-bin.jar in my
> > (Tomcat) $CATALINA_HOMEcommonlib and it works fine. This is for our
> > production server which is running Mandrake 9.1 (Linux) and Tomcat 4.1.24.
> > We don't have Eclipse on that machine though because we develop on Windows.
> >
> > On my development machine, which is running Windows XP, I am running using
> > DB2, not MySQL, and I have Eclipse 2.1.1, not 3.x, but I have my DB2
drivers
> > (db2java.zip) in an external jar which has been added to my build path in
> > the Java Build Path/Libraries tab within Preferences. This works fine for
> > me; I've never had a problem accessing DB2.
> >
> > Rhino
> >
> > "David Whitehurst" <dlwhitehurst@comcast.net> wrote in message
> > news:bqnvho$36e$1@eclipse.org...
> >
> >>I have added the MySQL JAR to my plugin project, I have added a path to
> >>the JAR, I have added the JAR to $JAVA_HOME/jre/lib/ext directory, etc..
> >>
> >>I cannot find the class for the driver. I have also looked at the JAR
> >>to be sure that the path com.mysql.jdbc.Driver class is in fact there.
> >>
> >>Does Eclipse do anything strange with the CLASSPATH? And, would anyone
> >>know why I can't get this to work. I also tried an Oracle JDBC driver
> >>that I know works elsewhere but when I debug in Eclipse 3M5 I cannot see
> >>the class.
> >>
> >>Any suggestions more than welcome,
> >>
> >>David
> >>
> >
> >
> >
Previous Topic:perspective/view
Next Topic:Rich Client Platform - how to set preferences prgrammatically
Goto Forum:
  


Current Time: Tue Jul 22 17:51:17 EDT 2025

Powered by FUDForum. Page generated in 0.25260 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top