|
|
| Author |
Message |
|
|
oliver
Joined: 27 Feb 2008 Posts: 3
|
Posted: Wed Feb 27, 2008 1:39 pm Post subject: Using Java3D in a GTK app. |
|
|
Hi All,
I have a problem I'm hoping someone can help me with.
I am writing an application in C++ and using Glade 3.4.1 (on a Gentoo Linux system with GTK+ v2.12.8 if that helps) for the GUI frontend. I was hoping to display some existing work written using Java3D, preferably in an embedded canvas in my main window. In a perfect world I would also like to be able to send and receive signals (such as user actions) between the Java3D canvas and the main GTK window.
I realise this is not a perfect world and I might find myself running a Java window in a child process, but if anyone can help me with a more elegant solution, that would be greatly appreciated.
Ols.
P.S. If you need any more information about the project or the target system just let me know. |
|
| Back to top |
|
 |
xlinuks Familiar Face
Joined: 31 Aug 2007 Posts: 8
|
Posted: Sun Mar 02, 2008 2:06 pm Post subject: |
|
|
| I have no clue. I guess in the end you'll have to choose either Java or C++. Mixing two languages into one project is generally more painful to develop/maintain than one generally thinks it would. |
|
| Back to top |
|
 |
oliver
Joined: 27 Feb 2008 Posts: 3
|
Posted: Mon Mar 03, 2008 10:54 am Post subject: Thanks anyway |
|
|
C'est La Vie
Thanks anyway, I guess I'll have to find another way.
Ols. |
|
| Back to top |
|
 |
oliver
Joined: 27 Feb 2008 Posts: 3
|
Posted: Fri Sep 26, 2008 3:31 am Post subject: |
|
|
Hi all,
Just a follow up in case any one else is trying to do the same thing.
xlinuks was correct, mixing two languages was more trouble than it was worth. My final solution was to launch the Java program in a child process. It is possible to set up pipes between the two and whip up a simple protocol to communicate messages if you really need to. Have a look at the glib "spawn_sync*()" and "spawn_async*()" family of functions.
Ols. |
|
| Back to top |
|
 |
|