Naoko Hamamoto's Weblog

« Previous month (Jun 2007) | Main | Next month (Aug 2007) »

20070726 Thursday July 26, 2007

Mac JDK Issues? Playing with JavaFX

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[354] 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[354] 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.

http://developer.apple.com/releasenotes/Java/Java50Release4RN/OutstandingIssues/chapter_4_section_3.html

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!

Posted by naoko ( Jul 26 2007, 04:12:08 PM PDT ) Permalink Comments [1]

20070719 Thursday July 19, 2007

New to Mac

I have started to use Mac for my day to day work. It felt VERY strange at the beginning, as I have been a Windows/UNIX user my entire career as a software engineer. Mac? What? That used to be my response to Mac, until... hmmm... recently.

So why did I choose to use Mac?

Well, I have quite a few Mac fanatics around me. They used to always show me how cool Mac is and how easy it is to use. I guess I have seen enough of them that I felt that I should at least give it a try before I say no to it. So I did. Hmm... it was kind of hard. How do I do this? How do I do that? I know how to do them all in Windows but on Mac, I don't know! It was frustrating at the beginning, but after spending some time with it, I started to get a hang of it, and yeah, it's actually kind of neat. I like the Spotlight feature a lot, and the Expose feature is awesome! Now I have started to enjoy Mac more, and started to appreciate all other features, like cool silver body, the magnetic power cord, etc., etc. Am I getting brainwashed???

Getting to know Mac is also good for my work, as most of the products are now supported on Mac as well. I have Parallels running as well, so I can do both Mac and Windows work at the same time. This is really cool.

There are still a lot of things that I don't know how to do. I hope to resolve them little by little and share my discoveries here, or ask for help!

Posted by naoko ( Jul 19 2007, 11:56:46 AM PDT ) Permalink Comments [2]


Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.