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:
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