Source Tags and Codes
Decompiling the Java Media Components
Improved media support is one of the highlight features of JavaFX, and its Java Media Components is something that many developers have been looking forward to ever since Chet Haase outlined the goals and plans for JMC in a java.net blog almost two years ago. To Java developers, JMC promised support for modern media codecs and a simple, playback-only API (as opposed to the stagnant and complex Java Media Framework).
So, JavaFX is here, and it supports media, but what about the JMC? It doesn't seem to have its own Java API, so what's the Java developer to do?
Jeff Friesen did a little digging around the file system and ran a decompiler over the JAR files, reporting his results in a new article that reveals the classes and methods of JMC, and what files (JARs and native libraries) you need to use it. In the informIT article Playing Media with Java Media Components, Jeff "presents a basic media player and drills down into JMC to create experimental media players that show you how to introduce a custom control panel and brand each frame of a playing video. Jeff closes by introducing an advanced media player with a slick-looking and dynamic control panel."
Also in Java Today, The JCP has extended the deadline for its program offering free JCP membership to Java User Groups. The program's benefits also include a special Education discount for Java training classes with Sun Learning Services, assistance getting speakers and logistical supprt for JUG meetings and other events, a special JUG gathering at JavaOne, promotion in the JCP Program Member Newsletter, and more.
In a Javalobby interview, Bean Validation for the Rest of Us, Emmanuel Bernard (a JBoss lead developer on four Hibernate projects) talks about JSR 303, which aims to offer a means of performing validation across multiple frameworks, via a metadata model and an API for for JavaBean validation. "Any framework that is having a need to use validation, to apply validation, can either use the runtime engine of Bean Validation or go extract the metadata and play with that. So the user declares it once, in one place, and every framework in the Java space can actually go and either apply the validation routine, or extract the validation method out of Bean Validation and play with it." A podcast of the interview (25 MB, ZIP'ed MP3) is also available.
In today's Weblogs, Osvaldo Pinali Doederlein revises his JavaFX example, in JavaFX Balls v2.0: Better benchmarking, Mobile support. "In a previous blog entry I described JavaFX Balls, the Bubblemark benchmark for JavaFX 1.0. Now I took some time to improve the benchmark and also make a Mobile version!"
Ed Burns has posted a Response to "A Call to Fix the JCP Oberver Status", in which he sayd "Public Access to JSF 2.0 JSR-314-EG Discussions [are] Now Available. Caveat: Yes this action is long overdue, and many open source projects have long been more open than JSF is, even after considering the changes announced in this blog entry. Oh well."
Finally, Jan Haderka's Monitor OpenWFE in Magnolia presents a "Short example of how to add monitoring of running workflows to Magnolia's admin interface."
In today's Forums, jmccombs is trying to set up a specific configuration in Glassfish under NFS.... "The benefit of a layout like this should be fairly obvious - application code, JDK versions, and the tomcat appserver itself are all guaranteed to be the same version. I can also save some (minor) cost on storage on the application servers (currently X4200's), since we work in pools behind an F5 my app servers only have a single drive. And of course, it's extremly simple to scale - jumpstart a box, mount the NFS file system, and bam. "Bare metal" to production in just a few hours. Is it possible to do something similar with Glassfish? I'd like to be able to keep as much of the same style of file system layout as possible, as it makes it easier on my team if they don't have to learn a new layout. I'm just not quite sure how to go about doing it at this point, especially since one of the goals is to move *away* from sticky sessions - which is one of the reasons we went with GF instead of sticking to tomcat."
cowwoc is dealing with
Custom Realms and Classpath. "I followed the steps at http://blogs.sun.com/pblaha/entry/develop_custom_realm_in_netbeans but instead of using their lib directory (which does not work) I placed my jar file in /glassfish/domains/domain1/lib/ext instead. Unfortunately I now get: java.lang.ClassNotFoundException: com.sun.appserv.security.AppservRealm, I don't want to have to copy my jar file into /glassfish/lib because I will then have to copy the JDBC driver jar as well as any other dependencies into the global classpath. I tried copying appserv-rt.jar into /glassfish/domains/domain1/lib/ext but it then complained about yet another missing dependency. I don't want to copy all of /glassfish/lib into my domain-specific lib."
Finally, jslott announces Project Wonderland's
dev3. "Developer Release 3 of Project Wonderland v0.5 (aka dev3) has been released by the Wonderland team today. This is the third in a series of early, psuedo-monthly "releases" for developers to work with the new platform, leading up to a user release this summer. We posted a blog describing it in more detail. http://blogs.sun.com/wonderland/entry/developer_release_3. Enjoy!"
Current and upcoming Java Events :
- March 2-6 - Java Posse Roundup 2009
- March 6-8 - 2009 Gateway Software Symposium
- March 16-20 - Java Training Philippines
- March 18-20 - TheServerSide Java Symposium
- March 20-22 - 2009 New England Software Symposium: Spring Edition
- March 23-26 - EclipseCon 2009
- March 23-27 - Java Power Tools - Sydney Australia
- March 30-April 3 - Java Power Tools - Wellington New Zealand
- April 3-5 - 2009 Great Lakes Software Symposium: Spring Edition
- April 3-5 - 2009 Pacific Northwest Software Symposium: Spring Edition
- April 6-10 - JAX India 2009: International Conference on Java Technologies
- April 13-17 - Java EE Training Philippines
- April 20-24 - Java Power Tools - Melbourne Australia
- April 20-24 - JAX 2009
- April 24-26 - 2009 Northern Virginia Software Symposium: Spring Edition
- May 1-3 - 2009 Greater Nebraska Software Symposium
- May 15-17 - 2009 Greater Atlanta Software Symposium: Spring Edition
- May 18-22 - Java Power Tools - Canberra Australia
- May 29-31 - 2009 Rocky Mountain Software Symposium: Spring Edition
- June 2-5 - JavaOne 2009
- June 22-25 - Jazoon'09
- June 26-28 - 2009 Research Triangle Software Symposium
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.
Decompiling the Java Media Components
- Login or register to post comments
- Printer-friendly version
- editor's blog
- 844 reads






Comments
by opinali - 2009-03-08 22:14
The blog is fixed now.by opinali - 2009-03-06 22:01
In clarification to the problem reported by Hayden, which actually affects ALL of my blog, follows a copy of the email I've sent to the java.net site admins yesterday morning... I didn't want to post this issue publicly here, but it's taking too much time for the fix (I mean it's a blog, if some post is offline for 24h+ nobody will read it afterwards). *** Hi, I'm getting an Internal Server Error from my blog: http://weblogs.java.net/blog/opinali/archive/2009/03/javafx_balls_v2_1.html The root problem: My latest blog contained a Java WebStart launch file (JNLP), but the webserver was not returning the correct content-type (should be application/x-java-jnlp-file). The JNLP was uploaded to my archive directory. Then, a poster recommended to upload a .htaccess file to the same directory with this content: AddType application/x-java-jnlp-file .jnlp AddType application/x-java-archive-diff .jardiff I did that (in both the Local Archive Path and the Local Site Path)... but now my entire blog doesn't load at all: C:\>wget -S http://weblogs.java.net/blog/opinali/ --2009-03-05 09:45:55-- http://weblogs.java.net/blog/opinali/ Resolving weblogs.java.net... 64.125.132.39, 64.125.132.37 Connecting to weblogs.java.net|64.125.132.39|:80... connected. HTTP request sent, awaiting response... HTTP/1.0 500 Internal Server Error Date: Thu, 05 Mar 2009 12:48:54 GMT Server: Apache Vary: Host Content-Type: text/html; charset=iso-8859-1 X-Cache: MISS from weblogs.java.net X-Cache: MISS from visionsrv00.visionnaire.com.br.local X-Cache-Lookup: MISS from visionsrv00.visionnaire.com.br.local:3128 Via: 1.0 visionsrv00.visionnaire.com.br.local:3128 (squid) Connection: close 2009-03-05 09:45:56 ERROR 500: Internal Server Error. I cannot remove the .htaccess file, because the MovableType admin pages don't have an option to remove or even list files :-( And the Upload File dialog doesn't work at all. A+ Osvaldoby hayden - 2009-03-06 16:24
Please fix the following link. JavaFX Balls v2.0: Better benchmarking, Mobile support Thanks, Hayden