<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/">

  <channel rdf:about="http://www.weiqigao.com/blog/">
    <title>Weiqi Gao&#039;s Observations</title>
    <link>http://www.weiqigao.com/blog/</link>
    <description>Sharing My Experience...</description>
    <items>
      <rdf:Seq>
        
        <rdf:li resource="http://www.weiqigao.com/blog/2008/05/09/friday_java_quiz_whats_your_favorite_java_7_feature.html" />
        
        <rdf:li resource="http://www.weiqigao.com/blog/2008/05/08/scott_bale_whats_so_great_about_guice.html" />
        
        <rdf:li resource="http://www.weiqigao.com/blog/2008/05/07/javafx_faq_1_why_the_unsupportedclassversionerror.html" />
        
      </rdf:Seq>
    </items>
  </channel>

  
  <item rdf:about="http://www.weiqigao.com/blog/2008/05/09/friday_java_quiz_whats_your_favorite_java_7_feature.html">
    <title>Friday Java Quiz: What&#039;s Your Favorite Java 7 Feature...</title>
    <link>http://www.weiqigao.com/blog/2008/05/09/friday_java_quiz_whats_your_favorite_java_7_feature.html</link>
    
      
        <description>
          &lt;p&gt;Like in past years, I&#039;m following JavaOne &lt;a href= &#034;http://www.weiqigao.com/blog/2004/06/29/javaone_keynote_infomercialone.html&#034; &gt;from afar&lt;/a&gt;.  All I have access to are the &lt;a href= &#034;http://java.sun.com/javaone/sf/sessions/general/&#034; &gt;general sessions&lt;/a&gt; and attendee&#039;s blog reactions to specific sessions on &lt;a href= &#034;http://java.dzone.com&#034; &gt;JavaLobby&lt;/a&gt;, &lt;a href= &#034;http://weblogs.java.net/&#034; &gt;java.net&lt;/a&gt;, &lt;a href= &#034;http://javablogs.com/Welcome.action&#034; &gt;JavaBlogs&lt;/a&gt;, and &lt;a href= &#034;http://stuffthathappens.com/blog&#034; &gt;StuffThatHappens&lt;/a&gt;.  And on Tuesday&#039;s session, I heard Danny Coward talking about &lt;a href= &#034;http://java.sun.com/javaone/sf/media_shell.jsp?id=FRdamp267556&#034; &gt;new features&lt;/a&gt; for Java 7,&lt;/p&gt;

&lt;center&gt;
&lt;iframe src=&#034;http://sunfeedroom.sun.com/linking/index.jsp?skin=oneclip&amp;fr_story=FRdamp267556&amp;rf=ev&amp;hl=true&#034; width=&#034;322&#034; height=&#034;278&#034; scrolling=&#034;no&#034; frameborder=&#034;0&#034; marginwidth=&#034;0&#034; marginheight=&#034;0&#034; &gt;&lt;/iframe&gt;
&lt;/center&gt;

&lt;p&gt;which, BTW, is scheduled for Summer of 2009.&lt;/p&gt;

&lt;p&gt;This, I suppose, is the same talk as the one I mentioned &lt;a href= &#034;http://www.weiqigao.com/blog/2006/12/07/you_wont_believe_this_but_the_arrow_operator_is_coming_to_java_7.html&#034; &gt;509 days ago&lt;/a&gt;.  However, the scope has clearly shrunk quite a bit.&lt;/p&gt;

&lt;p&gt;Today&#039;s quiz is a rhetorical one:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Q&lt;/b&gt;: What is your favorite new Java language feature that did not make it into Java 7?&lt;/p&gt;

&lt;p&gt;I&#039;ll start with mine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;XML literal (I&#039;m virtually alone on this one, but still...)&lt;/li&gt;
&lt;li&gt;Properties (can anyone tell if it&#039;s in or not?)&lt;/li&gt;
&lt;li&gt;Reified types for Java generics (&lt;a href= &#034;http://www.weiqigao.com/blog/2007/01/20/java_generics_let_the_other_shoe_drop.html&#034; &gt;Erase Erasure&lt;/a&gt;, as I&#039;ve call it 475 days ago)&lt;/li&gt;
&lt;/ul&gt;
        </description>
      
      
    
  </item>
  
  <item rdf:about="http://www.weiqigao.com/blog/2008/05/08/scott_bale_whats_so_great_about_guice.html">
    <title>Scott Bale: What&#039;s So Great About Guice</title>
    <link>http://www.weiqigao.com/blog/2008/05/08/scott_bale_whats_so_great_about_guice.html</link>
    
      
        <description>
          &lt;p&gt;&lt;a href= &#034;http://puredanger.com/kablooie/&#034; &gt;Scott Bale&lt;/a&gt;&#039;s presentation about &lt;a href= &#034;http://code.google.com/p/google-guice/&#034; &gt;Guice&lt;/a&gt; at the &lt;a href= &#034;http://www.ociweb.com/javasig/&#034; &gt;St. Louis JUG&lt;/a&gt; tonight is well attended and lively.&lt;/p&gt;

&lt;p&gt;You can tell Scott &lt;b&gt;liked&lt;/b&gt; Guice.  He enumerated all the things about Guice that he liked at the beginning of the talk: small, simple powerful, type safe, no xml, easy to use, etc.  It&#039;s been my experience that people either really like Guice, or they don&#039;t care for it at all.&lt;/p&gt;

&lt;p&gt;Scott did the brave thing&amp;mdash;he did the presentation mostly in Eclipse, with only a few slides.  So once again this is one of those &#034;you have to be there to appreciate it&#034; deals.&lt;/p&gt;

&lt;p&gt;The presentation is based around a set of simple examples that covers the basic features of Guice.  Content-wise, this presentation is similar to what you can find in Google Video.  The interesting bits are the conversations with the audience members.  Jeff Grigg, Kyle Cordes, Michael Easter, Rob Smith, Dean Farwell, Jeff Cunningham, et. al. were on hand to make the evening a thought provoking and entertaining one.&lt;/p&gt;

&lt;p&gt;As for me, I was too tired from moving my daughter back home from school this afternoon and couldn&#039;t focus too well on the code on the screen.  And I caught the mentioning of Modules, Injectors, Annotations, Scopes, Providers, SINGLETONs, and the binding DSL.  Oh, and we did not bash Spring Framework.  Honest.&lt;/p&gt;

&lt;p&gt;But no worries, the slides and code samples will be &lt;a href= &#034;http://www.ociweb.com/javasig/knowledgebase/2008-05/index.html&#034; &gt;posted on the website&lt;/a&gt; in a moment.&lt;/p&gt;
        </description>
      
      
    
  </item>
  
  <item rdf:about="http://www.weiqigao.com/blog/2008/05/07/javafx_faq_1_why_the_unsupportedclassversionerror.html">
    <title>JavaFX FAQ 1: Why The UnsupportedClassVersionError</title>
    <link>http://www.weiqigao.com/blog/2008/05/07/javafx_faq_1_why_the_unsupportedclassversionerror.html</link>
    
      
        <description>
          &lt;p&gt;I was asked a JavaFX Script question yesterday that I think other people may encounter, especially the Mac OS X folks who are trapped in a non-&#034;64-bit-Intel-Leopard&#034; (Core Duo, P5, P4, etc.) machine (who are therefore still without a Java 6 JDK).&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;b&gt;Q&lt;/b&gt;: I downloaded the JavaFX Script compiler from &lt;a href= &#034;http://openjfx.java.sun.com/&#034; &gt;http://openjfx.java.sun.com/&lt;/a&gt; (which seems to be down at the moment).&lt;br/&gt;
So I have a openjfx-compiler directory with dist/bin/javafxc and dist/bin/javafx inside it.&lt;br/&gt;
I&#039;m trying code sample 1 from &lt;a href= &#034;http://java.sun.com/developer/technicalArticles/scripting/javafx/ria_1/&#034; &gt;http://java.sun.com/developer/technicalArticles/scripting/javafx/ria_1/&lt;/a&gt;.&lt;br/&gt;
It compiles with javafxc, but when I run it with javafx I get the following.&lt;/p&gt;

&lt;center&gt;
&lt;img src=&#034;http://www.weiqigao.com/blog/images/javafxc-error.png&#034; title=&#034;JavaFX runtime error&#034; alt=&#034;JavaFX runtime error&#034; /&gt;
&lt;/center&gt;

&lt;p&gt;Note that I&#039;m using Java 1.5.&lt;br/&gt; 

Any idea why this doesn&#039;t work?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I seem to remember the same problem being asked on the mailing list a while back.  So I went to the mailing list archive to find the answer.  Since it took me quite a bit time to find the answer, I thought I&#039;d post the link here.&lt;/p&gt;

&lt;blockquote&gt;&lt;a href= &#034;https://openjfx-compiler.dev.java.net/servlets/ReadMsg?listName=dev&amp;msgNo=1412&#034; &gt;Tom Ball (on openjfx-compiler mailing list)&lt;/a&gt;: &lt;pre&gt;You need to compile with &#034;-target 1.5&#034; on the Mac, at least until Apple 
ships Java 6.  The compiler generates Java 6 versioned class files by 
default, since we are extending the latest version of javac.

Tom

Patrick Wright wrote:
&gt; Hi
&gt; 
&gt; I have sync&#039;d with the trunk, built the compiler, and was able to
&gt; compile Jim Weaver&#039;s simple test program at
&gt; http://learnjavafx.typepad.com/weblog/2007/11/developing-your.html.
&gt; Trying to run it I get the following:
&gt; 
&gt;&gt; javafx CompiledHelloJavaFX
&gt; Exception in thread &#034;main&#034; java.lang.UnsupportedClassVersionError: Bad
&gt; version number in .class file
&gt;         at java.lang.ClassLoader.defineClass1(Native Method)
&gt;         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
...&lt;/pre&gt;

&lt;/blockquote&gt;
        </description>
      
      
    
  </item>
  

</rdf:RDF>
