Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » linking problem in a plug-in
linking problem in a plug-in [message #25167] Wed, 30 April 2003 18:35 Go to next message
Eclipse UserFriend
Originally posted by: Gyorgy.Balogh.vanderbilt.edu

Hi,

I have a simple plug-in containing a tree view. I've a package somewhere
else containing a class A. If I try to use the A class in the plug-in view
it simply halt. I've set the java path, everithing compiles whell. If I
debug it, the program halts on the A a = new A(); The constructor is empty.
It seems that it cannot link the class.

The view has a red message after that:

An error has occurred when creating this view

Thank you
George.
Re: linking problem in a plug-in [message #25411 is a reply to message #25167] Thu, 01 May 2003 08:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: M.Langenbach.twi.tudelft.nl

Hi,

Seems like more people are having this problem (including me).
I got the error
Unhandled exception caught in event loop.
when I was trying to use a class from an external jar file.

This error is not completely the same as yours, but i guess our problems are
related.
Finally I got it to work. The solution for my problem was very simple:
- add the .jar file to the Runtime libraries on the run-time tab of the
plugin.xml file.
- copy the .jar file to the root directory of the plug-in.
- run as run-time workbench.
- add jar to the libraries tab on the java build path settings.

hope you can use this info,
Mark


"Gyorgy Balogh" <Gyorgy.Balogh@vanderbilt.edu> wrote in message
news:b8pfif$pkt$1@rogue.oti.com...
> Hi,
>
> I have a simple plug-in containing a tree view. I've a package somewhere
> else containing a class A. If I try to use the A class in the plug-in view
> it simply halt. I've set the java path, everithing compiles whell. If I
> debug it, the program halts on the A a = new A(); The constructor is
empty.
> It seems that it cannot link the class.
>
> The view has a red message after that:
>
> An error has occurred when creating this view
>
> Thank you
> George.
>
>
Re: linking problem in a plug-in [message #25491 is a reply to message #25411] Thu, 01 May 2003 09:59 Go to previous message
Eclipse UserFriend
ALso, if you are writing a plugin, please look in the help at, PDE
Plugin Developer Environment. It is explicitly for developing plugins.
Modifing the plugin.xml can automatically update your build path for you
with this environment, among other things. It also helps for building
and packaging your plugin.
Previous Topic:[ANN] Eclipse profiler plugin, 0.5.18
Next Topic:Why does eclipse have linux motif and gtk2 build separately?
Goto Forum:
  


Current Time: Fri May 02 01:02:56 EDT 2025

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

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

Back to the top