Hi Juerg,
The SWT_AWT integration support is only compatible with J2SE 5.0
Release 4 for Mac OS X Tiger. There is currently a separate
download for current Tiger releases and it should be integrated
into Java for Mac OS X 10.4, Release 5. It will not be part of any
earlier Mac OS X or Java versions. If you are using Panther
(10.3.x) then you should not expect the integration to work.
If you are on Mac OS X Tiger and certain you've installed either
"SWT Compatibility Libraries for J2SE 5.0 Release 4" or "Java for
Mac OS X 10.4, Release 5 Developer Preview 1" then you should log a
bug against the behavior you're seeing.
md
---------------------------------------------
Matt Drance
Sharing Technologies Evangelist
Worldwide Developer Relations
email@hidden
On Dec 20, 2006, at 2:45 AM, Juerg Lehni wrote:
I am running java from a native application, within which I invoke
the virtual machine through JNI.
I recently started experimenting with using SWT inside this native
app, which has worked pretty well. But when trying to embed AWT
components inside a SWT shell, I get weird exceptions since
updating to DP1:
Stacktrace: java.lang.RuntimeException: Non-Java exception raised,
not handled! (Original problem: *** +[NSView
bindNSWindowToHIView:hiView:]: selector not recognized)
at apple.awt.CHIViewEmbeddedFrame._nativeCreateHIView(Native Method)
at apple.awt.CHIViewEmbeddedFrame.<init>
(CHIViewEmbeddedFrame.java:28)
...
Before embedding sort of worked, except for a crash when closing
windows.
I still can run embedded AWT components when running java from the
command line, so I guess it has something to do with the fact that
I invoke the JVM from a native app.
The only possible hint I found so far is this post here:
http://lists.apple.com/archives/java-dev//2006/Sep/msg00083.html
With the difference that there, the selector is called on
HIViewAdapter, not NSView.
In that thread, someone mentioned it could be related to
incompatibility with 10.3.9. I compile the native part of my
software for 10.4, but as it is a plugin running within another
application that probably is compatible with 10.3.9, could this be
the problem?
Does anybody know how I can get this to work?
Thanks,
Juerg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden