Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SWT_AWT on 1.5.0_07 (DP1), selector not recognized exceptions



Hi Matt,

I experience this on "Java for Mac OS X 10.4, Release 5 Developer Preview 1". Before I had the "SWT Compatibility Libraries for J2SE 5.0 Release 4" installed and it worked in the same setup. I manually checked wether the upgrade to DP1 really removed the compatibility libraries, which it did.

What is weird is that SWT_AWT still works when runing a standalone SWT app that uses AWT, through the java command. I was hoping for some poiter what my application could be doing wrong... Could it be that I need to link the application that invokes the JVM with the latest OS X SDK frameworks which are unreleased yet, and may be private in DP1?

Jürg

On 20 Dec 2006, at 16:15, Matt Drance wrote:

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


_______________________________________________ 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
References: 
 >SWT_AWT on 1.5.0_07 (DP1), selector not recognized exceptions (From: Juerg Lehni <email@hidden>)
 >Re: SWT_AWT on 1.5.0_07 (DP1), selector not recognized exceptions (From: Matt Drance <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.