|
|
||
Editor's Daily BlogThe Bitterest Pill I Ever Had To SwallowPosted by invalidname on March 03, 2008 at 02:12 AM | Comments (1)The compelling alternative to JNI
JNI isn't for the faint of heart, and not just because the very premise of using it implies being capable in both Java and C or one of its various offshoots (I propose we use the pattern Duncan McGregor took on a similar task -- providing Java wrappers around calls to Mac OS X's Cocoa framework -- but he had the sense to opt-out of JNI. Instead, he used the JNA library to dynamically make native calls, without needing to muck around with JNI. As JNA's proect page describes it:
The result of Duncan's work is Rococoa, "a generic Java binding to the Mac Objective-C object system. It allows the creation and use of Objective-C objects in Java, and the implementation of Objective-C interfaces in Java." The project initially started as a QTKit wrapper to expose QuickTime functionality, Rococoa examples of which are provided on a QuickTime page. All without fighting with JNI over parameter lists, accessing Java values from C, or any of that rigamarole. Nice. Also in Java Today, the OpenJDK 6 project, the backport of OpenJDK's sources to the JDK 6 spec, has put out a b06 source release. As described in Joe Darcy's blog, imaging classes have been moved from closed to open, JAX-WS 2.1 has been included, and the SNMP portion of the build has been modified to not fail when binary plugs are absent. Several other improvements are included. Another build is expected within two weeks. The latest edition, issue 160, of the JavaTools Community Newsletter has been published, with a look ahead to JavaOne and the java.net Community Corner mini-talks, tool news from around the web, new projects in the community, a new graduation (loc-counter, and a Tool Tip on writing Scala applications with Eclipse. In today's Weblogs, Cay Horstmann reports on James Gosling's recent tech talk, entitled Feel of Java Revisited. "On February 28, James Gosling gave a presentation in Sun's Santa Clara Campus auditorium (formerly a part of the Agnews Insane Asylum :-)), entitled "Feel of Java Revisited". The talk promised to revisit the classic Feel of Java paper that famously declared "Java is a blue collar language". I went with my graduate programming language class from SJSU, and here is what I learned." Dru Devore makes a Call for reasonable Java hosting. "Java can compete against other languages, scripting or not, even for small sites, but it needs the support of the industry and the availability of reasonable hosting to do so." Finally, Rama Pulavarthi announces that OpenJDK 6 now has JAX-WS 2.1 and JAXB 2.1. "OpenJDK 6 b06 is live now. The important update from b05 is that JAX-WS 2.1.1 with JAXB 2.1.6 is integrated in to OpenJDK 6 b06. So, All the JAX-WS 2.1 features and bug fixes that are in JDK 6 Update 4 Release are available in OpenJDK 6 b06." This week's Spotlight is on
the Kijaro project, which "provides an area for those interested in adding new language features to Java to try out their ideas." Starting from a copy of the OpenJDK
In today's Forums,
kbr explains applet-sizing strategy in JDKuN, in
Re: Initially-hidden applet reports zero dimensions on startup using b12.
"In some circumstances (including having the applet tag hidden, but including dynamically generating the HTML of the applet tag) IE sends our ActiveX control several bogus width and height values. The logic attempting to deal with this was rewritten in the new Java Plug-In to simplify a huge bunch of hacks, and the new heuristics have been one problem area in the new plug-in. We'll try to figure out a way to be compatible with the old behavior."
Current and upcoming Java Events :
Registered users can submit event listings for the java.net Events Page using our events submission form. All submissions go through an editorial review before being posted to the site. Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of java.net it will be archived along with other past issues in the java.net Archive. Bookmark blog post: CommentsComments are listed in date ascending order (oldest first) | Post Comment
| ||
|
|