Home » Eclipse Projects » Rich Client Platform (RCP) » Jogl and Eclipse RCP
Jogl and Eclipse RCP [message #436431] |
Thu, 08 September 2005 06:14  |
Eclipse User |
|
|
|
Originally posted by: sebastien.dilogos.com
Hi everybody,
here is my problem :
I try to use some Jogl code in an Eclipse RCP project (Eclipse 3.1), but I
have the following error message :
Unhandled event loop exception
Reason:
net/java/games/jogl/GLEventListener
I have installed the OpenGL plugin and (I think) everything needed to
work, but it doesn't work !!!
What have I missed ?
Thanks a lot
Seb
|
|
|
Re: Jogl and Eclipse RCP [message #436444 is a reply to message #436431] |
Thu, 08 September 2005 10:45   |
Eclipse User |
|
|
|
When you say that you've installed the OpenGL plugin, do you mean that =
you've created a new plugin that wraps the jogl.jar file? If so, did yo=
u =
also include the platform-specific library (*.dll for Windows, *.so for =
=
Unix) inside your plugin?
Incidentally, since JOGL uses AWT, are you using the SWT_AWT bridge to =
make it work with RCP? Or through some other mechanism?
On Thu, 08 Sep 2005 04:14:20 -0600, Seb Vandamme <sebastien@dilogos.com>=
=
wrote:
> Hi everybody,
>
> here is my problem :
> I try to use some Jogl code in an Eclipse RCP project (Eclipse 3.1), b=
ut =
> I have the following error message :
>
> Unhandled event loop exception
> Reason:
> net/java/games/jogl/GLEventListener
>
> I have installed the OpenGL plugin and (I think) everything needed to =
=
> work, but it doesn't work !!!
> What have I missed ?
>
> Thanks a lot
>
> Seb
>
|
|
|
Re: Jogl and Eclipse RCP [message #436481 is a reply to message #436444] |
Fri, 09 September 2005 06:12   |
Eclipse User |
|
|
|
Originally posted by: sebastien.dilogos.com
I have installed this plugin :
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/opengl/opengl.html
and I use the gl-win32.dll for Windows XP.
My code look like that :
public void createPartControl(Composite parent) {
Vertical3DView v = new Vertical3DView();
ButtonPanel bp = new ButtonPanel(v);
Canvas canvas = new Canvas(parent, SWT.EMBEDDED);
Frame f = SWT_AWT.new_Frame(canvas);
f.setLayout(new BorderLayout()); f.add(v, BorderLayout.WEST);
f.add(bp, BorderLayout.EAST);
}
where Vertical3DView and ButtonPanel are two Jogl classes.
In a singl SWT application, this code work fine ! Then, what's the problem
with RCP, that's my question... :-)
thanks a lot,
Seb
Geoff Draper wrote:
> When you say that you've installed the OpenGL plugin, do you mean that
> you've created a new plugin that wraps the jogl.jar file? If so, did you
> also include the platform-specific library (*.dll for Windows, *.so for
> Unix) inside your plugin?
> Incidentally, since JOGL uses AWT, are you using the SWT_AWT bridge to
> make it work with RCP? Or through some other mechanism?
> On Thu, 08 Sep 2005 04:14:20 -0600, Seb Vandamme <sebastien@dilogos.com>
> wrote:
>> Hi everybody,
>>
>> here is my problem :
>> I try to use some Jogl code in an Eclipse RCP project (Eclipse 3.1), but
>> I have the following error message :
>>
>> Unhandled event loop exception
>> Reason:
>> net/java/games/jogl/GLEventListener
>>
>> I have installed the OpenGL plugin and (I think) everything needed to
>> work, but it doesn't work !!!
>> What have I missed ?
>>
>> Thanks a lot
>>
>> Seb
>>
|
|
| | |
Re: Jogl and Eclipse RCP [message #436489 is a reply to message #436431] |
Fri, 09 September 2005 09:12   |
Eclipse User |
|
|
|
Originally posted by: alr.agelid.com
Hi,
Actually Jogl IS the openGL's library you use, and then you don't care
about SWT Opengl's one.
The plugin SWT OpenGL is not used there !!
What you need is just add the jogl.jar in the execution library list of
your plugin, you can do that using the plugin.xml editor in the
"execution/runtime" folder.
AND tell the plugin.xml to also export the lib, do that in the
"build.propserties" tab
Let's says your jogl.jar is in the "lib" folder of your plugin, the
build.properties may look like :
...
bin.includes = plugin.xml,\
plugin.properties,\
icons/,\
pluginXXXX.jar,\
lib/
Hope this help,
Arnauld
|
|
|
Re: Jogl and Eclipse RCP [message #436494 is a reply to message #436489] |
Fri, 09 September 2005 09:57   |
Eclipse User |
|
|
|
Originally posted by: sebastien.dilogos.com
Thank you very much for your answer, but it doesn't work... :-(
alr wrote:
> Hi,
> Actually Jogl IS the openGL's library you use, and then you don't care
> about SWT Opengl's one.
> The plugin SWT OpenGL is not used there !!
> What you need is just add the jogl.jar in the execution library list of
> your plugin, you can do that using the plugin.xml editor in the
> "execution/runtime" folder.
> AND tell the plugin.xml to also export the lib, do that in the
> "build.propserties" tab
> Let's says your jogl.jar is in the "lib" folder of your plugin, the
> build.properties may look like :
> ...
> bin.includes = plugin.xml,
> plugin.properties,
> icons/,
> pluginXXXX.jar,
> lib/
> Hope this help,
> Arnauld
|
|
| | | |
Goto Forum:
Current Time: Wed Jul 09 07:43:27 EDT 2025
Powered by FUDForum. Page generated in 0.26013 seconds
|