class not found exception [message #49388] |
Fri, 08 April 2005 12:27  |
Eclipse User |
|
|
|
Originally posted by: email2dhiraj.yahoo.com
I have the connector/j drivers for MYSQL. I added the CLASSPATH vars in
Eclipse BUILD PATH. it knows where to find the jar files, but I get
ClassNotFound Exception when I try to establish a connection to the
DB?STAND ALONE PROGRAM IS WORKING.problem when plugin is used.on eclipse
2.0 it is working .but not on eclipse 3.0.2. What am I overlooking?
|
|
|
|
Re: class not found exception [message #49538 is a reply to message #49448] |
Fri, 08 April 2005 17:25   |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"JT" <ask@me.com> wrote in message
news:d89789f09616831b921e9d01dd404b3b$1@www.eclipse.org...
> Hi, I have similar issue and I see three other threads with this problem
> (no clear answers in any of them). I don't understand exactly how the
> folder structure should look. My Eclipse Distilled book is ok but when I
> do as it says to add custom user libaries I still get the error that it
> can't find my custom java jar files or documents even though I can browse
> them from within Eclipse.
>
> Any help would be appreciated.
The issues are different, depending on whether you're writing a plugin or an
application. If you're writing an Eclipse plugin, the compile-time
classpath (that is, the classpath that you're editing when you add
libraries) is not used at run time. The runtime classpath is strictly
determined by the plugin's dependencies on other plugins, and the classes
exported by those other plugins.
In other words, if you want to load a class from inside a plugin, the class
must be exported by another plugin that your plugin depends on. (Or, you
must use your own classloader; but if that class then loads other classes,
it may or may not succeed.)
Maybe someone has written a plugin that wraps the MySQL drivers? If so,
that's what you need.
Don't shoot me, I'm only the messenger...
-Walter Harley
BEA Systems, Inc.
|
|
|
|
Re: class not found exception [message #50895 is a reply to message #49870] |
Mon, 11 April 2005 20:19  |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"dhiraj kumar" <email2dhiraj@yahoo.com> wrote in message
news:b6d07b6d7e1ed1c31068fed988c20fae$1@www.eclipse.org...
>
> then , what to do. i mean how to make dependent plugin to export the
> needed jar flies.
There are a couple of books on how to write plugins for Eclipse. Some were
mentioned in this newsgroup just recently; see the thread <"developing
plugins for eclipse 3.x" book recommendation>.
It is not something that can be easily summarized in a newsgroup posting,
unfortunately.
|
|
|
Powered by
FUDForum. Page generated in 0.07896 seconds