Mac JDK Issues? Playing with JavaFX
By naoko on Jul 26, 2007
After I came back from maternity leave, I realized that the world around me has changed quite a bit. To me, this is one scary thing about the technology world. If you were away for several months, you feel like you were gone for decades! New technologies and acronyms pop up everywhere and what used to be hot and cool seems to be already obsolete. Anyway, so one thing that seems to be in now is JavaFX. I see news about it, read about it, hear people talking about it - so what really is JavaFX? I got curious and thus I decided to play with this technology on my cool MacBook Pro
I used NetBeans to run sample applications. Here is a very well written tutorial on Getting Started with the JavaFX Script Language. Following the steps, it was very simple to create my very first "Hello World" JavaFX script. However, when I ran it, I got the following error message in the output window.
The complete error messages are shown below.
2007-07-26 13:37:19.565 java CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x10903, name = 'java.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2007-07-26 13:37:19.565 java CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)
This does not happen on Windows XP, so it seems to be a Mac specific issue. I investigated a bit and then I was informed (thanks Karthink) that this is indeed a Mac JDK issue.
OK, at least it is harmless, which is good.
I then ran the temperature application which exercises the Spinners and Sliders classes, and there seems to be some painting problems.
Yikes, this does not look good at all. I then did some research and again, it seems to be a Mac JDK issue. I see people posting issues around Mac JDK's repaint functionality in different forums. Again, there is no problem on XP.
Sun does not provide JDK implementations on Mac - they are provided by Apple. Hence, I am not able to use my internal connections. I hope these issues get resolved soon!