Using a library [message #155646] |
Tue, 11 November 2003 04:32  |
Eclipse User |
|
|
|
Originally posted by: pecanov.mt.net.mk
I have put a mysql.jar (a jdbc driver) as a pluging project library. Using
the classes from the jar is not a problem when running the plugin. The
problem is when loading the driver using:
Class.forName("com.jdbc.mysql.Driver") ,
it throws an ClassNotFoundException. I figure that it's something with the
class loader that the platform uses for plugin projects. Any idea how to
solve this?
Thanx
|
|
|
|
Re: Using a library [message #155679 is a reply to message #155654] |
Tue, 11 November 2003 21:46   |
Eclipse User |
|
|
|
Rich:
This is where I am hung up. I created two plugins by wizard,
SQLEditCommander and SQLConsole. I am making a TOAD type toolset for doing
SQL work in my Java projects in Eclipse. I have done this with Swing as a
standalone app. Anyhow, I am confused as to how I do the packages and how I
do the directories when I use the wizards. It looks like now, to write to
the Text object in the SQLConsole view, I will establish or mimic the
listener code in the plugin-architecture doc below.
How do I setup the plugins as far as directories? Do I need to create the
console, the listener Interface, etc. deeper than the Editor? And, do I
create the .exsd file in a schema directory under the editor directory?
And, is my editor (holds the menu actions) where the extension point is
defined, and the console is where the extension is defined?
Thanks,
David
David L. Whitehurst
aka. PiratePete
http://www.piratepetesoftware.com
dlwhitehurst@comcast.net
"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:bortr6$orl$1@eclipse.org...
> Where is the class that executes the forName stmt defined? If it is not
> in a plugin that has the com.jdbc.mysql plugin as a required plugin, it
> won't find the code in that plugin. Each plugin only has its required
> plugins (recursive to the root) visible. Other plugins are not visible
> to it.
>
> See for article on how plugins work:
>
>
http://www.eclipse.org/articles/Article-Plug-in-architecture /plugin_architecture.html
>
> See for developing plugins within Eclipse:
>
> http://www.eclipse.org/articles/Article-PDE-does-plugins/PDE -intro.html
>
> --
> Thanks, Rich Kulp
>
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.25864 seconds