JAR built on Windows fails to paint on Linux [message #650854] |
Wed, 26 January 2011 15:54  |
Eclipse User |
|
|
|
We are in the process of enhancing our product by offering both an AWT and SWT version. We deploy both versions in one jar file that is built on Windows. Up until now we have been able to built on windows and deploy on all our supported Unix platforms. Now that we have incorporated SWT into the jar we have to build on Linux and windows. This causes issue for the deployment of our product, it would be ideal to still only build one jar to deploy everywhere.
A little background.
The class that seems to be causing the problem extends org.eclipse.swt.widgets.Canvas
It also implements some JNI interface to communicate with native C++ code.
After our constructor calls super to create the object we do some initialization on it by adding the DisposeListener and the PaintListener.
The PaintListener is where we implement a re-parenting mechanism that has to run otherwise our SWT viewer will not show up.
The problem:
When we build the jar on Windows and try to use it on Linux we never get the paint event. If we could figure out why we don't get the paint event we think our issue would be solved.
If we build the jar on Linux the paint occurs on Linux, but if we use it on windows the same thing happens and the paint does not occur.
We have noticed that the class files that are created for this specific class are different between windows and linux. however when we decompile them there is no difference.
In theory the jar should be able to be built once and run everywhere, and nothing should be different between the platforms.
Another side note is that both the windows and linux jars work on AIX which is motif, our linux is GTK.
Anyone have any ideas on what we are seeing?
|
|
|
|
Powered by
FUDForum. Page generated in 0.07454 seconds