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: Jvm within a screensaver




On Jun 30, 2005, at 1:01 AM, Paul Murray wrote:

Has anyone had any luck running a jvm inside a screensaver?

I have found that I can get one up ok, even a 1.5 JVM, and call methods on java classes, but the moment anything loads up an awt class (even java.awt.Dimension), the whole thing bombs - the saver exits altogether.

I suspect strongly that something is spinning up an AWT event loop, and that it is fighting with the Cocoa event loop used by a screen saver.


Perhaps a good way to investigate this would be to pass the Headless flag, then see if it gets any further. (Since a screen saver is not headless, you will need to resolve this eventually, but it might give good bug report fodder.)

It might also we worth asking the Eclipse folks whether they solved mixing the AWT and Carbon event loops for Eclipse, and if so, how?

I was hoping to do the apple natives for http:// screensavers.dev.java.net/ , but it isn't looking hopeful.

FWIW, I asked for support for the screen saver framework in Cocoa Java, but since they are not moving anything new to cocoa java, I am not hopeful.


As an aside, if doing Cocoa in Java is important to you, I strongly suggest calling your sales representative and emailing email@hidden to suggest better Cocoa-Java support. This is not a technical decision on Apple's part, it is a resource allocation decision on the part of the Cocoa team. To change resource allocation decisions, you need to convince them that this is economically valuable for Apple. Use financial numbers, not passionate arguments.

Scott
_______________________________________________
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: 
 >Jvm within a screensaver (From: Paul Murray <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.