<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>java &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/java/</link>
	<description>Feed of posts on WordPress.com tagged "java"</description>
	<pubDate>Tue, 01 Dec 2009 18:07:37 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Link to SCJP simulator download]]></title>
<link>http://tyranny15.wordpress.com/2009/12/01/link-to/</link>
<pubDate>Tue, 01 Dec 2009 14:19:33 +0000</pubDate>
<dc:creator>tyranny15</dc:creator>
<guid>http://tyranny15.wordpress.com/2009/12/01/link-to/</guid>
<description><![CDATA[Free Download Software]]></description>
<content:encoded><![CDATA[<div class='snap_preview'>
<p> <a class="widgetBoxFoo" target="_blank" href="http://wareseeker.com">Free Download Software</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Which ArcGIS Server API or ADF Should I Choose?]]></title>
<link>http://blog.gis-services.com/2009/12/01/which-arcgis-server-api-or-adf-should-i-choose/</link>
<pubDate>Tue, 01 Dec 2009 14:18:50 +0000</pubDate>
<dc:creator>Michael Healander</dc:creator>
<guid>http://blog.gis-services.com/2009/12/01/which-arcgis-server-api-or-adf-should-i-choose/</guid>
<description><![CDATA[One of the most common questions I receive from clients lately is: “Which API should I use?”  Unfort]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:left;"><img class="aligncenter" src="http://www.popsci.com/files/imagecache/article_image_small/files/articles/confused-adult.gif" alt="" /></p>
<p>One of the most common questions I receive from clients lately is: “Which API should I use?”  Unfortunately it is not a simple answer; ESRI provides three APIs and two ADFs which include; JavaScript API, Flex API, Silverlight API and the .Net and Java Web.ADFs.  I answer the question with a combination of questions needed to isolate the answer.  For example:</p>
<p>What version of ArcGIS server are you running?</p>
<ul>
<li>The ArcGIS APIs are only supported at the 9.3 version.  Any version bellow ArcGIS Server 9.3 would require the Web.ADF.</li>
</ul>
<p>Is browser plug-ins an option?</p>
<ul>
<li>ArcGIS Server APIs for Flex and Silverlight require browser plug-ins. If your application cannot require a plug-in, the JavaScript API or one of the Web. ADFs will need to be your choice. </li>
<li>The ArcGIS Server API for Flex requires the Flash plug-in, which 99% of Internet clients seem to have. The Silverlight plug-in has not yet reached the same level of ubiquity, but can be expected to gain ground.  Plug-ins come in different versions, which may also present a hurdle in getting end users to experience the Web site in the way you expect. If you choose to use Flex or Silverlight, it is wise to consider how flexible you are to upgrade plug-in versions. The ArcGIS API for Flex requires Flash Player 9 or above. The 1.0 release of the ArcGIS API for Silverlight requires Silverlight 2 or above.</li>
</ul>
<p>How quick do you want to get it done?</p>
<ul>
<li>Web.ADF out-of-the-box is the fastest way to deploy, followed by Flex, JavaScript, and then Silverlight.  To get a client jumpstarted they have the following options;  the sample Flex viewer template can be downloaded and configured using an xml file.  JavaScript can be added to an html page and edited using note pad.  Silverlight requires Visual Studio and Expression Blend and the sample template has some quality issues.</li>
</ul>
<p>Which platform are your developers most comfortable with?</p>
<ul>
<li>Many beginning developers find the JavaScript and Flex easier to learn than the Web.ADF or Silverlight, but Silverlight and ADF have the power of the .NET framework behind it.  I suggest choosing a platform that your staff already knows and can save you ramp-up costs.  However, we are seeing a lot of community based support for the Flex API, lots of contributed samples and code snippets. We expect to see the same sort of community support for the Silverlight API as well. Additionally, the .NET ADF can become fairly heavy if a lot of customized functionality is needed. This can impact performance.</li>
</ul>
<p>What Integrated Development Environment (IDE) is needed?</p>
<ul>
<li>When you choose an API, you are also making choices about the environment where you’ll spend your time coding. Flex developers use Adobe Flex Builder 3.  .Net and Silverlight developers use Visual Studio or Visual Web Developer Express. Expression Blend is another option for Silverlight developers. Java developers use Eclipse or NetBeans. JavaScript programmers probably have the most choices, including the option to just write code in a text editor.  Cost of the IDE may also a factor.</li>
</ul>
<p>Do you need to edit features over the Web?</p>
<ul>
<li>GISi already has a limited editing framework for the APIs.  The .Net and Java ADFs offer access to fine-grained ArcObjects, which can be used to edit feature geometries. The ADFs contain out-of-the-box tasks for basic Web editing operations. If you need to build an application with Web editing fast and now, go with the ADF.  More editing features are planned for the JavaScript, Flex, and Silverlight APIs at the release of ArcGIS Server 9.4 in 2010.</li>
</ul>
<p>What is the industry trend?</p>
<ul>
<li>I’m definitely seeing a trend away from the ADFs and towards the APIs.  Out of the APSs it’s a close race.  Flex has come out of the gates fast and has a bit of a lead on the others, but Silverlight has Microsoft behind it and ESRI is definitely working close to Microsoft.</li>
</ul>
<p>After answering questions like these, the clients usually have a clear answer.  Several of my answers might be subjective, so I try to keep my personal perspective or opinion and desires out of the equation, unless asked directly.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The Spotified Billboard Charts - now with real playlists]]></title>
<link>http://musicmachinery.com/2009/12/01/the-spotified-billboard-charts-now-with-real-playlists/</link>
<pubDate>Tue, 01 Dec 2009 14:17:48 +0000</pubDate>
<dc:creator>Paul</dc:creator>
<guid>http://musicmachinery.com/2009/12/01/the-spotified-billboard-charts-now-with-real-playlists/</guid>
<description><![CDATA[Last month I Spotified the Billboard charts by using the Billboard and Spotify APIs.  However, I was]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://static.echonest.com/SpotBill/BillboardSpotified.html"><img class="aligncenter size-full wp-image-1850" title="The Spotified Billboard Singles Charts" src="http://musicmachinery.wordpress.com/files/2009/12/the-spotified-billboard-singles-charts.png" alt="" width="450" height="69" /></a></p>
<p>Last month I <a href="http://musicmachinery.com/2009/11/08/spotifying-the-billboard-charts/">Spotified the Billboard charts</a> by using the Billboard and Spotify APIs.  However, I wasn&#8217;t actually able to create real Spotify playlists since the Spotify web API doesn&#8217;t allow creating or manipulating playlists.  But now I&#8217;m a premium Spotify user and as a premium user I can use the <a href="http://developer.spotify.com/en/libspotify/overview/">libspotify</a> / <a href="http://despotify.se/">despotify</a> API to do just about anything that the official Spotify client can do.  With my new found Spotify superpower, I revamped my Billboard charts creator to create real Spotify playlists:</p>
<p style="text-align:center;"><a href="http://static.echonest.com/SpotBill/BillboardSpotified.html">The Spotified Billboard Singles Charts</a></p>
<p style="text-align:left;">Instead of having to click on every song to listen to it, just click on the chart &#8211; this will open the Spotify playlist &#8211; hit play and you&#8217;ll be in Billboard chart heaven (or hell, depending on your music taste).</p>
<p style="text-align:left;">To interact with Spotify I used <a href="http://jotify.felixbruns.de/">Jotify</a> &#8211; a Java client library (based on despotify)  for Spotify.  Jotify is  well written, full featured library written by <a href="http://www.felixbruns.de/">Felix Bruns</a> (who has been extremely helpful in answering my questions).   I highly recommend Jotify.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java - Basic Rules]]></title>
<link>http://shamuntoha.wordpress.com/2009/12/01/java-55/</link>
<pubDate>Tue, 01 Dec 2009 13:22:30 +0000</pubDate>
<dc:creator>shamuntoha</dc:creator>
<guid>http://shamuntoha.wordpress.com/2009/12/01/java-55/</guid>
<description><![CDATA[Very basics law of java. 1. package directant;  // like namespace or under a same folder 2.  import ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Very basics law of java.</p>
<p><span style="background-color:#ffffff;">1. package directant;  // like namespace or under a same folder</span></p>
<p><span style="background-color:#ffffff;">2.  import javax.swing.*; import java.awt.*;  // like include</span></p>
<p><span style="background-color:#ffffff;">3. Must have main</span></p>
<p>public class Main {<br />
public static void main(String[] args){<br />
// call gui window</p>
<p>}<br />
}</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java - How to Ant Gui?]]></title>
<link>http://shamuntoha.wordpress.com/2009/12/01/java-0/</link>
<pubDate>Tue, 01 Dec 2009 13:22:20 +0000</pubDate>
<dc:creator>shamuntoha</dc:creator>
<guid>http://shamuntoha.wordpress.com/2009/12/01/java-0/</guid>
<description><![CDATA[Just a small but a very handy. ############################################## 1. GUI &#8211; will ea]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Just a small but a very handy.<br />
##############################################<br />
1. GUI &#8211; will eat time &#8211; we used seperate GUI builder jvider.com<br />
2. Action collect centrally<br />
3. Programming<br />
##############################################</p>
<p>Main.java<br />
=========</p>
<div id="_mcePaste">// Simple Ant procedure</div>
<div id="_mcePaste">package directant;</div>
<div id="_mcePaste">/**</div>
<div id="_mcePaste">*</div>
<div id="_mcePaste">* @author shamun</div>
<div id="_mcePaste">*/</div>
<div id="_mcePaste">public class Main {</div>
<div id="_mcePaste">/**</div>
<div id="_mcePaste">* @param One main execute</div>
<div id="_mcePaste">*/</div>
<div id="_mcePaste">public static void main(String[] args) {</div>
<div id="_mcePaste">// Other tasks can be done here.</div>
<div id="_mcePaste">// Calling GUI</div>
<div id="_mcePaste">Gui gui = new Gui();</div>
<div id="_mcePaste">gui.setVisible(true);</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">}</div>
<p>// Simple Ant procedurepackage directant;<br />
/** * * @author shamun */public class Main {<br />
/**     * @param One main execute     */    public static void main(String[] args) {        // Other tasks can be done here.                // Calling GUI        Gui gui = new Gui();        gui.setVisible(true);    }<br />
}</p>
<p>Gui.java<br />
=======<br />
package directant;</p>
<p>import javax.swing.JPanel;</p>
<p>import javax.swing.JButton;</p>
<p>import javax.swing.JFrame;</p>
<p>import javax.swing.UIManager;</p>
<p>import javax.swing.UnsupportedLookAndFeelException;</p>
<p>import java.awt.*;</p>
<p>import java.awt.event.*;</p>
<p>/**</p>
<p>*</p>
<p>* @author shamun</p>
<p>*/</p>
<p>public class Gui extends JFrame implements ActionListener{</p>
<p>static Gui theGui;</p>
<p>JPanel pnPanel0;</p>
<p>JButton btBut0;</p>
<p>JButton btBut1;</p>
<p>public static void main( String args[] ) throws UnsupportedLookAndFeelException{</p>
<p>try</p>
<p>{</p>
<p>UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());</p>
<p>}</p>
<p>catch ( ClassNotFoundException e )</p>
<p>{</p>
<p>}</p>
<p>catch ( InstantiationException e )</p>
<p>{</p>
<p>}</p>
<p>catch ( IllegalAccessException e )</p>
<p>{</p>
<p>}</p>
<p>catch ( UnsupportedLookAndFeelException e )</p>
<p>{</p>
<p>}</p>
<p>theGui = new Gui();</p>
<p>}</p>
<p>public Gui(){</p>
<p>super( &#8220;TITLE&#8221; );</p>
<p>pnPanel0 = new JPanel();</p>
<p>GridBagLayout gbPanel0 = new GridBagLayout();</p>
<p>GridBagConstraints gbcPanel0 = new GridBagConstraints();</p>
<p>pnPanel0.setLayout( gbPanel0 );</p>
<p>btBut0 = new JButton( &#8220;shamun&#8221;  );</p>
<p>gbcPanel0.gridx = 1;</p>
<p>gbcPanel0.gridy = 2;</p>
<p>gbcPanel0.gridwidth = 15;</p>
<p>gbcPanel0.gridheight = 4;</p>
<p>gbcPanel0.fill = GridBagConstraints.BOTH;</p>
<p>gbcPanel0.weightx = 1;</p>
<p>gbcPanel0.weighty = 0;</p>
<p>gbcPanel0.anchor = GridBagConstraints.NORTH;</p>
<p>gbPanel0.setConstraints( btBut0, gbcPanel0 );</p>
<p>pnPanel0.add( btBut0 );</p>
<p>btBut1 = new JButton( &#8220;foo&#8221;  );</p>
<p>gbcPanel0.gridx = 7;</p>
<p>gbcPanel0.gridy = 11;</p>
<p>gbcPanel0.gridwidth = 11;</p>
<p>gbcPanel0.gridheight = 4;</p>
<p>gbcPanel0.fill = GridBagConstraints.BOTH;</p>
<p>gbcPanel0.weightx = 1;</p>
<p>gbcPanel0.weighty = 0;</p>
<p>gbcPanel0.anchor = GridBagConstraints.NORTH;</p>
<p>gbPanel0.setConstraints( btBut1, gbcPanel0 );</p>
<p>pnPanel0.add( btBut1 );</p>
<p>setDefaultCloseOperation( EXIT_ON_CLOSE );</p>
<p>setContentPane( pnPanel0 );</p>
<p>pack();</p>
<p>setVisible( true );</p>
<p>// Mannually created &#8211; Attach button actions</p>
<p>btBut1.addActionListener(this);</p>
<p>btBut1.addActionListener(new EventCentral());</p>
<p>}</p>
<p>// Mannually created</p>
<p>public void actionPerformed(ActionEvent e) {</p>
<p>//throw new UnsupportedOperationException(&#8220;Not supported yet.&#8221;);</p>
<p>System.out.print(&#8220;First thread \r\n&#8221;);</p>
<p>}</p>
<p>}// End of GUi</p>
<p>EventCentral.java<br />
===============</p>
<p>// namespace</p>
<p>package directant;</p>
<p>// includes</p>
<p>import java.awt.event.*;</p>
<p>// Event Actions are listening on here.</p>
<p>public class EventCentral implements ActionListener {</p>
<p>// Not in use, we can use it as __construct.</p>
<p>public EventCentral(){}</p>
<p>// This is getting trigger by Gui.Java</p>
<p>public void actionPerformed(ActionEvent e) {</p>
<p>System.out.print(&#8220;Second thread \r\n&#8221;);</p>
<p>}</p>
<p>}</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java - Swing | Awt | SWT]]></title>
<link>http://shamuntoha.wordpress.com/2009/12/01/java/</link>
<pubDate>Tue, 01 Dec 2009 13:22:10 +0000</pubDate>
<dc:creator>shamuntoha</dc:creator>
<guid>http://shamuntoha.wordpress.com/2009/12/01/java/</guid>
<description><![CDATA[Performance: Prefer SWING to use. Performance issues and latest. Eeven if SWING is written on top of]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Performance:</strong></p>
<p>Prefer SWING to use. Performance issues and latest. Eeven if SWING is written on top of Awt. Most other experts advised also that both maybe used by with correct implementations.</p>
<p>&#160;</p>
<p>Default:</p>
<p>Swing GUI prefered</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java - Pointer/Reference/Preprocessor]]></title>
<link>http://shamuntoha.wordpress.com/2009/12/01/java-pointerreferencepreprocessor/</link>
<pubDate>Tue, 01 Dec 2009 13:21:35 +0000</pubDate>
<dc:creator>shamuntoha</dc:creator>
<guid>http://shamuntoha.wordpress.com/2009/12/01/java-pointerreferencepreprocessor/</guid>
<description><![CDATA[Java we dont have Pointer ( *) and Preprocessor (#if or #define)  like (ADA and C we have) For examp]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Java we dont have Pointer ( *) and Preprocessor (#if or #define)  like (ADA and C we have)</p>
<p>For example:<br />
=========</p>
<pre>int main(void)
{
    struct tag *st_ptr;         /* a pointer to a structure */
    st_ptr = &#38;my_struct;        /* point the pointer to my_struct */
    strcpy(my_struct.lname,"Shamun");
    strcpy(my_struct.fname,"Foo");
    printf("\n%s ",my_struct.fname);
    printf("%s\n",my_struct.lname);
    my_struct.age = 63;
    show_name(st_ptr);          /* pass the pointer */
    return 0;
}</pre>
<p>&#160;</p>
<p>@Good:</p>
<p>Java uses References ( like c/c++)</p>
<p>@Bad:</p>
<p>we cant make easyly this:  System.out.print(&#8220;Hello world&#8221;);  like this: echo &#8220;Hello world&#8221;;</p>
<p>- www.hecl.org &#8211; implemented somthing like that.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java - How to Decompile]]></title>
<link>http://shamuntoha.wordpress.com/2009/12/01/java-how-to-decompile/</link>
<pubDate>Tue, 01 Dec 2009 13:20:27 +0000</pubDate>
<dc:creator>shamuntoha</dc:creator>
<guid>http://shamuntoha.wordpress.com/2009/12/01/java-how-to-decompile/</guid>
<description><![CDATA[Java compiled file like: Main.java to Main.class Now in case you lost it you can go back by decompil]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Java compiled file like: <span style="background-color:#ffffff;">Main.java to Main.class </span></p>
<p><span style="background-color:#ffffff;">Now in case you lost it you can go back by decompiling it, that means its not secured. Using dcompiler tools ( i dont use it, this is for my research purpose)</span></p>
<p><span style="background-color:#ffffff;"><br />
</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java - How to JAR]]></title>
<link>http://shamuntoha.wordpress.com/2009/12/01/java-how-to-jar/</link>
<pubDate>Tue, 01 Dec 2009 13:19:55 +0000</pubDate>
<dc:creator>shamuntoha</dc:creator>
<guid>http://shamuntoha.wordpress.com/2009/12/01/java-how-to-jar/</guid>
<description><![CDATA[java -jar filename.jar &nbsp;]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>java -jar filename.jar</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java - How to Event]]></title>
<link>http://shamuntoha.wordpress.com/2009/12/01/java-how-to-event/</link>
<pubDate>Tue, 01 Dec 2009 13:18:12 +0000</pubDate>
<dc:creator>shamuntoha</dc:creator>
<guid>http://shamuntoha.wordpress.com/2009/12/01/java-how-to-event/</guid>
<description><![CDATA[Just a small but a very handy. ############################################## 1. GUI &#8211; will ea]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Just a small but a very handy.<br />
##############################################<br />
1. GUI &#8211; will eat time<br />
2. Action collect centrally<br />
3. Programming<br />
##############################################</p>
<p>Main.java<br />
=========<br />
package directant;</p>
<p>import javax.swing.*<br />
import java.awt.*;</p>
<p>public class Main {<br />
public static void main(String[] args){<br />
// call gui window</p>
<p>}<br />
}</p>
<p>Gui.java<br />
=======<br />
package directant;</p>
<p>EventCentral.java<br />
===============</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java - How to Compile]]></title>
<link>http://shamuntoha.wordpress.com/2009/12/01/java-how-to-gui/</link>
<pubDate>Tue, 01 Dec 2009 13:17:30 +0000</pubDate>
<dc:creator>shamuntoha</dc:creator>
<guid>http://shamuntoha.wordpress.com/2009/12/01/java-how-to-gui/</guid>
<description><![CDATA[Introduction: Many IDE made life easier, but there is some time comes we really cant do simple basic]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Introduction:</strong></p>
<p>Many IDE made life easier, but there is some time comes we really cant do simple basic run/compile/etc etc, by thanking to all IDE&#8217;s. Just few notes when lonely situations.</p>
<p><strong>Less talk:</strong></p>
<p>Unix/Linux/Windows shell mode:</p>
<p>#javac</p>
<p>$javac sourcode.java (this will compile and make sourcode.class)<br />
<span style="background-color:#ffffff;">#java</span></p>
<p><span style="background-color:#ffffff;">$java sourcode (this will execute the sourcecode.class)</span></p>
<p>$java -jar buildedfile.jar (will execute the jar )</p>
<p><span style="background-color:#ffffff;"> </span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java - How to Ant]]></title>
<link>http://shamuntoha.wordpress.com/2009/12/01/java-how-to-ant/</link>
<pubDate>Tue, 01 Dec 2009 13:16:39 +0000</pubDate>
<dc:creator>shamuntoha</dc:creator>
<guid>http://shamuntoha.wordpress.com/2009/12/01/java-how-to-ant/</guid>
<description><![CDATA[Just a small but a very handy. ############################################## 1. GUI &#8211; will ea]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Just a small but a very handy.<br />
##############################################<br />
1. GUI &#8211; will eat time<br />
2. Action collect centrally<br />
3. Programming<br />
##############################################</p>
<p>Main.java<br />
=========<br />
package directant;</p>
<p>import javax.swing.*<br />
import java.awt.*;</p>
<p>public class Main {<br />
public static void main(String[] args){<br />
// call gui window</p>
<p>}<br />
}</p>
<p>Gui.java<br />
=======<br />
package directant;</p>
<p>EventCentral.java<br />
===============</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java EE 6 - the web profile]]></title>
<link>http://matthiaswessendorf.wordpress.com/2009/12/01/java-ee-6-the-web-profile/</link>
<pubDate>Tue, 01 Dec 2009 13:11:50 +0000</pubDate>
<dc:creator>matthiaswessendorf</dc:creator>
<guid>http://matthiaswessendorf.wordpress.com/2009/12/01/java-ee-6-the-web-profile/</guid>
<description><![CDATA[The JSR 316 (Java EE 6) has been approved by the &#8220;Executive Committee for SE/EE&#8221;. See th]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The JSR 316 (Java EE 6) has been approved by the &#8220;Executive Committee for SE/EE&#8221;. See the vote result details <a href="http://jcp.org/en/jsr/results?id=5025">here</a>.</p>
<p>It is interesting to see that the Web Profile has no optional component. In fact all these guys are required:</p>
<ul>
<li>Servlet 3.0</li>
<li>JavaServer Pages (JSP) 2.2</li>
<li>Expression Language (EL) 2.2</li>
<li>Debugging Support for Other Languages (JSR-45) 1.0</li>
<li>Standard Tag Library for JavaServer Pages (JSTL) 1.2</li>
<li>JavaServer Faces (JSF) 2.0</li>
<li>Common Annotations for Java Platform (JSR-250) 1.1</li>
<li>Enterprise JavaBeans (EJB) 3.1 Lite</li>
<li>Java Transaction API (JTA) 1.1</li>
<li>Java Persistence API (JPA) 2.0</li>
<li>Bean Validation 1.0</li>
<li>Managed Beans 1.0</li>
<li>Interceptors 1.1</li>
<li>JSR-299 1.0</li>
<li>JSR-330 1.0</li>
</ul>
<p>You can find all specs (Java EE 6, Web Profile and Managed Bean) <a href="http://jcp.org/aboutJava/communityprocess/pfd/jsr316/index.html">here</a>. Looks like there are now three standards that less or more do (somehow) Dependency Injection:</p>
<ul>
<li>Managed Beans</li>
<li>JSR 299</li>
<li>JSR 330</li>
</ul>
<p>As the Managed Bean was optional for a JSF 2.0 implementation, it is now (somewhat) required to be implemented. Well Apache MyFaces <a href="http://svn.apache.org/repos/asf/myfaces/core/trunk/api/src/main/java/javax/faces/bean/">did that already</a>&#8230; And, of course, the JSF RI /Mojarra/ did that too.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Inner Classes - De-Mystified]]></title>
<link>http://suhasjavablog.wordpress.com/2009/12/01/inner-classes-de-mystified/</link>
<pubDate>Tue, 01 Dec 2009 12:49:16 +0000</pubDate>
<dc:creator>ShamanOfJava</dc:creator>
<guid>http://suhasjavablog.wordpress.com/2009/12/01/inner-classes-de-mystified/</guid>
<description><![CDATA[Note : This article is copied from JavaRanch for my easy reference in the future as this is a common]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Note : This article is copied from JavaRanch for my easy reference in the future as this is a common question with the interviewers</p>
<p><strong>Getting in Touch with your Inner Class</strong></p>
<p><em>One Object shares deeply personal feelings. Next&#8230; on a very, special, Campfire Story.</em></p>
<p>Being an object like me isn&#8217;t as fun as you might think.</p>
<p>It gets lonely&#8230;</p>
<p>Out here&#8230;<br />
on the heap&#8230;<br />
alone.</p>
<p>Not to mention the horror, the emotional devastation when you feel your last reference slip away and it hits you &#8212; you&#8217;ve just become food for the garbage collector.</p>
<p>But you know what helps? Having an inner class. An inner class can ease the loneliness&#8230; as long as somebody makes an <em>instance</em><em> </em>of that inner class. All I really want is someone to bond with.</p>
<p>Someone to <strong>share my most private thoughts</strong> (and variables and methods). Someone who knows EVERYTHING about me. An intimate relationship shared between two objects &#8212; an outer and an inner.</p>
<p>I&#8217;m very protective of my inner class. If somebody wants to instantiate my inner class, they MUST go through me&#8211; an object of the outer class.</p>
<p><strong>My inner class can&#8217;t exist on its own</strong>. I, as an instance of the outer class, can live on my own (however unhappily). You don&#8217;t have to make an instance of an inner class in order to have an instance of the outer class. But you can NEVER make an instance of my inner class without an outer object to &#8220;bind&#8221; it to.</p>
<p>My inner class needs me.</p>
<p>We have that special bond.</p>
<p>It makes life on the garbage-collectible heap bearable.</p>
<p>Here&#8217;s how to do a little object matchmaking of your own:</p>
<p>class <strong>Outer</strong><br />
{<br />
private int size ;<br />
private String thoughts = &#8220;My outer thoughts&#8221;;</p>
<p>class <strong>Inner</strong><br />
{<br />
String innerThoughts = &#8220;My inner thoughts&#8221;;</p>
<p>void <strong>doStuff()</strong><br />
{<br />
// inner object has its own &#8220;this&#8221;<br />
System.out.println( innerThoughts );</p>
<p>// and it also has a kind of &#8220;outer this&#8221;<br />
// even for private data of outer class<br />
System.out.println(thoughts);<br />
}<br />
}<br />
}</p>
<p>OK, but nothing really happens until somebody makes an instance of BOTH classes&#8230;</p>
<p>class <strong>TestMe</strong><br />
{</p>
<p>public static void <strong>main</strong>( String args[] )<br />
{<br />
// instantiate me, the outer object<br />
Outer o = new Outer();</p>
<p>// Inner i = new Inner();<br />
// NO! Can&#8217;t instantiate Inner by itself!</p>
<p>Outer.Inner i = o.new Inner();<br />
// now I have my special inner object<br />
i.doStuff();<br />
// OK to call methods on inner object<br />
}</p>
<p>}</p>
<p>You can also instantiate both the outer class and inner class at the same time:</p>
<p>Inner i = new Outer().new Inner();</p>
<p>I know that looks odd, but it shows that you need an outer object, so that you can ask it to make an inner object. In this example, you didn&#8217;t even keep a reference to the outer object&#8230; only the inner object, &#8220;i&#8221;. The inner object &#8220;i&#8221; still knows its outer object&#8230; its &#8220;outer this&#8221;. (By the way, there is no keyword &#8220;outer this&#8221; &#8212; that&#8217;s just a concept for the way inner objects behave. They behave as if the outer object&#8217;s variables were their own.)</p>
<p><strong>I hate static!</strong></p>
<p>You&#8217;ve probably heard about<strong> </strong><strong>static inner classes</strong>. Well, they don&#8217;t deserve to be called inner classes!</p>
<p>A static inner class (an inner class marked as static) looks like this:</p>
<p>class <strong>Outer</strong><br />
{<br />
static class<strong> </strong><strong>Inner</strong><br />
{<br />
}<br />
}</p>
<p>I don&#8217;t like them because they don&#8217;t give me that special object-to-object bond. In fact, static inner classes aren&#8217;t even supposed to be called inner classes at all. Technically, they are &#8220;<strong>top-level nested classes</strong>&#8220;.</p>
<p>A static nested class can be instantiated, but the object created doesn&#8217;t share any special relationship with an outer object.</p>
<p>The static nested class is tied only to the outer<strong>class</strong>, <strong><em>not an instance</em></strong> of the outer class.</p>
<p>Outer.Inner i = new Outer.Inner();</p>
<p>That&#8217;s why you can make an instance of the static nested class <em>without</em>having an instance of the outer class, just the way you can call static methods of a class without having any instances of that class. A top-level nested class is little more than another way to control namespace.</p>
<p><strong>But let&#8217;s go back to inner classes</strong>; they&#8217;re so much more meaningful. And did you know that I can bond with an instance of my inner class even when I don&#8217;t know the NAME of my inner class? For convenience, you can get an<strong> </strong><strong>instance</strong><strong> </strong>of an inner class and<strong> </strong><strong>make that inner class</strong><strong> </strong>at the <strong>same time.</strong></p>
<p>It works like this&#8230;</p>
<p>Imagine you (the programmer) are making your nice GUI program and you decide that you need to know when the user clicks your GO button. &#8220;I reckon I need an ActionListener object&#8221;, you say to yourself. So you type:</p>
<p>goButton.addActionListener([object goes here]);</p>
<p>And then you slap your forehead as you realize&#8230; &#8220;I can&#8217;t make an<strong>instance</strong>&#8230; I don&#8217;t even HAVE an ActionListener <strong>class</strong>!&#8221;</p>
<p>You never made yourself a class that implements the ActionListener interface.</p>
<p>Not a problem.</p>
<p>You can create a new class which implements the ActionListener interface, AND make an instance of that new class &#8211; <strong>all inside the parameter to the Button object&#8217;s addActionListener() method.</strong><strong> </strong><strong><br />
</strong>How cool is that?</p>
<p>It looks like this:</p>
<p>goButton.addActionListener<br />
<strong>(</strong><br />
new ActionListener()<br />
<strong>{</strong><br />
public void <strong>actionPerformed</strong>( ActionEvent e )<br />
<strong>{</strong><br />
doImportantStuff();<br />
<strong>}</strong><br />
<strong>}</strong><br />
<strong>)</strong>;<br />
It works like this:</p>
<p>new ActionListener()</p>
<p>says to the compiler: &#8220;Create an instance of a new, unnamed class which<strong>implements the ActionListener interface</strong>&#8230;&#8221;</p>
<p>And after that opening curly brace (shown above in green) you define the new unnamed class&#8230;</p>
<p>public void <strong>actionPerformed</strong>( actionEvent e )<br />
<strong>{</strong><br />
doImportantStuff();<br />
<strong>}</strong></p>
<p>That actionPerformed method is the same one you would be forced to define in any class which implements the ActionListener interface. But this new class has no name. That&#8217;s why its called an<strong> </strong><strong>anonymous</strong> inner class.</p>
<p>And notice that you did not say &#8220;new MyActionClass()&#8221;. You said, &#8220;new ActionListener()&#8221;. But you aren&#8217;t making an instance of ActionListener, you&#8217;re making an instance of your new anonymous class which implements the ActionListener interface.</p>
<p>&#8220;But wait!&#8221; you say, &#8220;What if I don&#8217;t want to implement an interface&#8230; what if I want to make an anonymous inner class that <strong>extends</strong> another class?&#8221;</p>
<p>Once again, No Problem-o.</p>
<p>Whatever you say after the &#8220;new&#8221; as in &#8220;new Something()&#8221;, if Something is an interface, then the anonymous class implements that interface (and must define all the methods of that interface). But if Something is a class, then your anonymous class automatically becomes a subclass of that class. This is perfect for the event adapter classes like WindowAdapter.</p>
<p>Finally, don&#8217;t forget to close the parameter to the  goButton.addActionListener<strong>(</strong></p>
<p>by finishing off with a closing parentheses and the semicolon ending that statement&#8230;<br />
<strong>)</strong>;</p>
<p>Programmers always seem to forget that last little semicolon way down there, since the statement started waaaaaay up above somewhere.</p>
<p><strong>Danger Danger!</strong></p>
<p>Now I feel compelled to warn you about one thing with anonymous inner classes, or any other inner class that you define <strong>inside</strong> a method (as opposed to inside the class but NOT inside a method). <strong>The inner class can&#8217;t use local variables from the method in which the inner class is defined!</strong><br />
After all, at the end of that method, the local variables will be blown away. Poof. Gone. History. That inner object you created from that inner class might still be alive and kickin&#8217; out on the heap long after that local variable has gone out of scope.<br />
You can, however, use local variables that are declared final, because the compiler takes care of that for you in advance. But that&#8217;s it &#8212; no method parameters from that method, and no local variables.</p>
<p>Another warning about all inner classes is that they can&#8217;t declare any static members unless they are compile-time constants and are primitives or Strings. (This does not apply to static nested classes, of course). But don&#8217;t worry &#8212; the compiler will stop you if you try.</p>
<p>Finally, you should know that some programmers really dislike inner classes, and especially anonymous ones. Some folks claim they&#8217;re not very object-oriented, and others get their feathers ruffled over &#8220;encapsulation violations&#8221; because the inner object can access the private data of the outer object.</p>
<p>Well you know what I say?<br />
<strong>That&#8217;s the point!</strong></p>
<p>It&#8217;s that special relationship, that intimate bond, that makes inner classes so practical. Otherwise you&#8217;d have to make constructors for your inner class, and pass references to variables, etc. when you instantiate the inner class&#8230; all the things you have to do with a plain old non-inner class, which you have to treat like an outsider.</p>
<p>But when you&#8217;re trying to decide if inner classes are right for you, please&#8230; think of me&#8230;</p>
<p>the poor, lonely, object&#8230;</p>
<p>on the heap&#8230;</p>
<p>alone .</p>
<p>I know you&#8217;ll do the right thing.</p>
<p>(Oh, and don&#8217;t feel compelled to stop at just ONE inner class and inner object&#8230; there&#8217;s nothing in the Java spec that says outer objects have to be monogamous)<br />
<strong>The end.</strong></p>
<p>(Editor&#8217;s note: this story represents the opinion of the author &#8212; an Object &#8212; and does not necessarily reflect the views and opinions of the CowGirl, Javaranch, Bert, or any of the cows)</p>
<p>One of our esteemed audience members, David Lu, writes:</p>
<p>That Outer class gets involved in some slutty relationships. At first, it all seems very nice and romantic to have a special inner class to share with, but I then came to realize that the outer class can have affairs with other inner classes.</p>
<p>Then, the outer class starts having &#8220;anonymous&#8221; inner class relationships! The outer class doesn&#8217;t even know their names! What is going on here? One night stands? Hookers? Free Love? I&#8217;m shocked!</p>
<p>The Outer class has no further comments.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cd Tutorial Java - Marc Antoine cruisin Jazz Music CD Review]]></title>
<link>http://cdtutorialproactive.wordpress.com/2009/12/01/cd-tutorial-java-marc-antoine-cruisin-jazz-music-cd-review/</link>
<pubDate>Tue, 01 Dec 2009 10:35:26 +0000</pubDate>
<dc:creator>caksub3</dc:creator>
<guid>http://cdtutorialproactive.wordpress.com/2009/12/01/cd-tutorial-java-marc-antoine-cruisin-jazz-music-cd-review/</guid>
<description><![CDATA[cd tutorial proactive Jazz yang sangat berbakat Marc Antoine seniman telah mengeluarkan CD-nya berju]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><div class="wp-caption alignleft" style="width: 260px"><img title="cd tutorial proactive" src="http://cdtutorialproactive.files.wordpress.com/2009/12/java.jpeg?w=250&#038;h=200" alt="cd tutorial proactive" width="250" height="200"><p class="wp-caption-text">cd tutorial proactive</p></div>
<p> Jazz yang sangat berbakat Marc Antoine seniman telah mengeluarkan CD-nya berjudul cruisin. Saya sangat percaya diri dan senang untuk mengumumkan bahwa saya percaya Marc Antoine penggemar dan penggemar Jazz akan senang dengan yang satu ini. Dengan rilis cruisin Marc Antoine S keunggulan artistik adalah ditampilkan sebagai penuh Antoine sekali lagi telah menyampaikan koleksi lagu brilian yang bisa sangat baik menjadi dia karya terbaik-to-date. </p>
<p> Ini adalah hari yang langka memang bahwa saya mendapatkan sebuah CD dari seorang seniman yang saya dapat dengan jujur mengatakan tidak memiliki lagu yang buruk dalam kelompok. Aku lebih dari senang untuk mengumumkan bahwa S persis apa yang harus saya katakan tentang ini. TIDAK hanya ada yang buruk dalam kelompok. Tidak ada <a href="http://cdtutorialproactive.wordpress.com" title="cd tutorial proactive"><b>cd tutorial proactive</b></a> pengisi di sini sama sekali. </p>
<p> Salah satu hal-hal baik dan menyegarkan tentang CD ini adalah cara <a href="http://cdtutorialproactive.wordpress.com/2009/12/01/cd-tutorial-linux-quick-start-cara-menggunakan-video-tutorial-linux-dari-cd-dan-run-linux-di-windows/" title="Cd Tutorial">Cd Tutorial</a> semua seniman yang berpartisipasi tampaknya benar-benar menikmati diri mereka sendiri. Campurkan bahwa dengan keseluruhan presentasi dan kau Ve punya salah satu Marc Antoine S paling mengesankan yang pernah rilis. </p>
<p> Jika Anda bahkan agak ke musik Jazz Anda akan menikmati album ini. Keseluruhan cruisin adalah rilis yang hebat. Aku berikan ganda saya thumbs up. Anda tidak akan kecewa dengan satu lagu. </p>
<p> Sementara seluruh album ini beredar lagu yang benar-benar menonjol adalah lagu &#8211; On The Strip lagu &#8211; Indian Summer dan melacak &#8211; Fuego. </p>
<p> Bonus saya Pick dan salah satu yang mendapat Sore &#8230; seperti dalam amp quot Stuck On Ulangi amp quot adalah lagu &#8211; Mas Que Nada. Ini adalah trek yang hebat </p>
<p> Cruisin Release Notes </p>
<p> Marc Antoine cruisin awalnya dirilis pada Juni tentang GRP Records label. </p>
<p> CD Track List Follows </p>
<p> . Mas Que Nada </p>
<p> . On The Strip </p>
<p> . Cruisin amp </p>
<p> . Sierra Bella </p>
<p> . Just Chillin amp </p>
<p> . Java Montmarte </p>
<p> . Indian Summer </p>
<p> . Karibia Morning </p>
<p> . Fuego </p>
<p> Personil Marc Antoine gitar keyboard bass programming Jerry Hei terompet Michael Davis trombon Larry <a href="http://cdtutorialproactive.wordpress.com/2009/12/01/cd-tutorial-komputer-apa-jenis-komputer-haruskah-aku-buy/" title="cd tutorial proactive"><b>cd tutorial proactive</b></a> Williams flute Ricky Peterson Philippe Saisse piano keyboard Alex Al Dave Carpenter bass Peter Erskine Lil amp John Roberts drum Luis Conte perkusi Patti Austin background vokal . </p>
<p> Produser Tommy LiPuma Paul Brown Philippe Saisse. </p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/JlIsLHJaw7M&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/JlIsLHJaw7M&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java Lesson 7 : Class, Konstruktor, metode and atribut]]></title>
<link>http://argonzdcc.wordpress.com/2009/12/01/148/</link>
<pubDate>Tue, 01 Dec 2009 09:58:41 +0000</pubDate>
<dc:creator>argonzdcc</dc:creator>
<guid>http://argonzdcc.wordpress.com/2009/12/01/148/</guid>
<description><![CDATA[Hai frend..! ketemu lagi di Java Lesson 7, kali saya menulis tentang penulisan class, attributnya da]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hai frend..! ketemu lagi di Java Lesson 7, kali saya menulis tentang penulisan class, attributnya dan metode. Silahkan diperhatikan listingnya, baca perjelasannya dan diamati.<br />
<!--more--></p>
<p><a href="http://argonzdcc.wordpress.com/files/2009/12/listing1.jpg"><img src="http://argonzdcc.wordpress.com/files/2009/12/listing1.jpg" alt="" title="listing1" width="623" height="326" class="alignnone size-full wp-image-149" /></a></p>
<p>Line 1 : class Tabungan {<br />
	Ini adalah deklarasi kelas, yang mana di dalam kelas ini dapat kita isi konstruktor, metode, dan atribut.<br />
Line 2 : public int saldo = 0;<br />
	Nah, klo diatas kita membicarakan tentang atribut, inilah salah satu atribut dari kelas Tabungan dengan modifier “public” yang berarti atribut ini dapat diakses oleh kelas lain. Dan atribut ini diberi nilai awal 0.<br />
Line 3 : Tabungan(int initsaldo){<br />
	Ini yang kita sebut konstruktor, yaitu metode atau fungsi yang namanya sama dengan nama kelasnya. Konstruktor berfungsi untuk menjalankan perintah didalam bloknya ketika</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Web development Company Rightway solution]]></title>
<link>http://rightwaysol.wordpress.com/2009/12/01/web-development-company-rightway-solution/</link>
<pubDate>Tue, 01 Dec 2009 09:27:54 +0000</pubDate>
<dc:creator>rightwaysol</dc:creator>
<guid>http://rightwaysol.wordpress.com/2009/12/01/web-development-company-rightway-solution/</guid>
<description><![CDATA[Web development is become very faster now a days .  In the fastest Growing IT world outsorucing is m]]></description>
<content:encoded><![CDATA[Web development is become very faster now a days .  In the fastest Growing IT world outsorucing is m]]></content:encoded>
</item>
<item>
<title><![CDATA[Java Lesson 6 : Looping 3 (do – while)]]></title>
<link>http://argonzdcc.wordpress.com/2009/12/01/java-lesson-6-looping-3-do-%e2%80%93-while/</link>
<pubDate>Tue, 01 Dec 2009 08:34:33 +0000</pubDate>
<dc:creator>argonzdcc</dc:creator>
<guid>http://argonzdcc.wordpress.com/2009/12/01/java-lesson-6-looping-3-do-%e2%80%93-while/</guid>
<description><![CDATA[Penjelasan : Line 4 : do Perintah do adalah perintah untuk menjalankan statemen yang ada di dalam bl]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://argonzdcc.wordpress.com/files/2009/12/listing.jpg"><img src="http://argonzdcc.wordpress.com/files/2009/12/listing.jpg" alt="" title="listing" width="619" height="308" class="alignnone size-full wp-image-145" /></a></p>
<p>Penjelasan :<br />
Line 4 :	do<br />
	Perintah do adalah perintah untuk menjalankan statemen yang ada di dalam bloknya ( tanda kurawal / line 5 dan line 8 ) <!--more--><br />
Line 5 :	{<br />
	Ini adalah pembuka blok untuk perintah do<br />
Line 6 &#38; 7 : Statemen yang berada dalam blok do<br />
Line 8 : }<br />
	Ini adalah penutup blok untuk perintah do<br />
Line 9 : while(a&#60;10);<br />
	Berbeda dengan while sebelumnya, while yang ini berada dibelakang statemen yang akan di ulang (statemen line 6 dan 7). </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Open Services Gateway Initiative (OSGi)]]></title>
<link>http://bluewarrior.wordpress.com/2009/12/01/open-services-gateway-initiative-osgi/</link>
<pubDate>Tue, 01 Dec 2009 08:18:06 +0000</pubDate>
<dc:creator>bluewarrior</dc:creator>
<guid>http://bluewarrior.wordpress.com/2009/12/01/open-services-gateway-initiative-osgi/</guid>
<description><![CDATA[The OSGi Alliance (sebelumnya dikenal sebagai Open Services Gateway inisiatif, sekarang nama kuno) a]]></description>
<content:encoded><![CDATA[The OSGi Alliance (sebelumnya dikenal sebagai Open Services Gateway inisiatif, sekarang nama kuno) a]]></content:encoded>
</item>
<item>
<title><![CDATA[Log4j dan JBoss AS]]></title>
<link>http://jokondo.wordpress.com/2009/12/01/log4j-dan-jboss-as/</link>
<pubDate>Tue, 01 Dec 2009 07:26:18 +0000</pubDate>
<dc:creator>jokondo</dc:creator>
<guid>http://jokondo.wordpress.com/2009/12/01/log4j-dan-jboss-as/</guid>
<description><![CDATA[Log dalam programming digunakan untuk kepentingan development dan production. Saat development kita ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Log dalam programming digunakan untuk kepentingan development dan production. Saat development kita ingin info yang sedetail-detail saat aplikasi berjalan. Log yang sering digunakan dalam java salah satunya adalah Log4j. Saat digunakan, biasanya log4j menggunakan konfigurasi yang ada di file log4j.xml. Untuk JBoss 4.2.x sendiri file konfigurasinya adalah jboss-log4j.xml, terdapat di dalam ~\jboss-4.2.x\server\default\conf\.<br />
Dalam file tersebut dapat kita set treshold (batasan) dari log yang akan ditampilkan dari yang tertinggi ERROR,WARN,DEBUG dan INFO. Kalau tresholdnya di set INFO , maka semua level (ERROR,WARN, DEBUG,INFO) log akan di tampilkan.<br />
Output dari log4j sendiri bisa berupa tampilan di console, dalam file, database atau dikirimkan ke email tertentu.<br />
Treshold menjadi penting kala aplikasi memasuki proruction. File log yang ukurannya akan terus menerus bertambah, semakin detail levelnya, INFO misalnya, semakin besar file log yang dibuat. Di JBoss, file log nya adalah server log, by defualt dan bisa di ubah dengan mengubah file jboss-log4j.xml pada line<br />
dan server.lognya diganti.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Java policytool - Policy File Creation and Management Tool]]></title>
<link>http://interopy.in/2009/12/01/javapolicytool-policy-file-creation-and-management-tool/</link>
<pubDate>Tue, 01 Dec 2009 06:43:47 +0000</pubDate>
<dc:creator>Ranjan Kumar</dc:creator>
<guid>http://interopy.in/2009/12/01/javapolicytool-policy-file-creation-and-management-tool/</guid>
<description><![CDATA[A policy file in Java is an ASCII text file and can be edited in a text editor or the graphical Poli]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>A policy file in Java is an ASCII text file and can be edited in a text editor or the graphical Policy Tool Utility <code>polocytool</code>. It can be started from the command prompt like:</p>
<p><code>C:\Documents and Settings\ranjan&#62;policytool</code></p>
<p><img src="http://interopy.wordpress.com/files/2009/12/policytool.jpg" alt="" title="Policy Tool" width="600" height="497" class="aligncenter size-full wp-image-1143" /></p>
<p>Following is a very good tutorial on this tool:</p>
<p><a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/policytool.html" target="_blank">policytool &#8211; Policy File Creation and Management Tool</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[LU Decomposition and Singular Value Decompostion Script by kxbiker1029]]></title>
<link>http://outsourcedjobs.wordpress.com/2009/12/01/lu-decomposition-and-singular-value-decompostion-script-by-kxbiker1029/</link>
<pubDate>Tue, 01 Dec 2009 06:33:16 +0000</pubDate>
<dc:creator>ejazazeem</dc:creator>
<guid>http://outsourcedjobs.wordpress.com/2009/12/01/lu-decomposition-and-singular-value-decompostion-script-by-kxbiker1029/</guid>
<description><![CDATA[Please see the .pdf file for more information. I need to perform operations to the attached matrix s]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Please see the .pdf file for more information.  I need to perform operations to the attached matrix set.  Must be solved using Matlab and program must be written in Java, C++ or anything of your choice&#8230; (Budget: $30-250, Jobs: C/C++, Java, Javascript, Python)<br /> <a href="http://www.getafreelancer.com/projects/mea_561680.html"><b>Bid on this project</b></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Working with Java Enumerated types (Enums)]]></title>
<link>http://javaforyou.wordpress.com/2009/12/01/working-with-java-enumerated-types-enums/</link>
<pubDate>Tue, 01 Dec 2009 06:29:52 +0000</pubDate>
<dc:creator>Mohamed Sanaulla</dc:creator>
<guid>http://javaforyou.wordpress.com/2009/12/01/working-with-java-enumerated-types-enums/</guid>
<description><![CDATA[In this post I would like to explain about Enums in Java. Though in my 2 years of coding in Java I h]]></description>
<content:encoded><![CDATA[In this post I would like to explain about Enums in Java. Though in my 2 years of coding in Java I h]]></content:encoded>
</item>
<item>
<title><![CDATA[How Linux (almost) Drove Me To Windows XP]]></title>
<link>http://designbygravity.wordpress.com/2009/12/01/how-linux-almost-drove-me-to-windows-xp/</link>
<pubDate>Tue, 01 Dec 2009 06:28:06 +0000</pubDate>
<dc:creator>designbygravity</dc:creator>
<guid>http://designbygravity.wordpress.com/2009/12/01/how-linux-almost-drove-me-to-windows-xp/</guid>
<description><![CDATA[Yep. Sunday afternoon, I was this close to nuking the linux partition on my laptop. Monday, a lack o]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Yep. Sunday afternoon, I was this close to nuking the linux partition on my laptop. Monday, a lack of blank CDROM disks saved me.<br />
<!--more-->I have &#8230; three linux machines in the house, not counting commodity items like a TiVo and such. One backup machine, one media machine, and my desktop machine. The backup machine is frozen at Debian unstable sometime four years ago &#8212; it works, and upgrades of working boxes scare me. The media machine I keep up to date, again tracking Debian unstable. I recently lost a drive on my last 1.3 kernel machine, a truly ancient and no-longer-used NAT box. My desktop machine has Ubuntu (I think <em>Ibex</em>) on it; but that machine mostly is used as a Windows box.</p>
<p>For the last nearly 10 years, however, my work laptop has been my primary development machine. I&#8217;ve been fortunate to be involved in Java development for the bulk of that time; non-GUI Java development no less. Telemetry systems, compilers, logic database servers, etc. For me, the environment is Eclipse and Java. The OS is somewhat less relevant than it is for others. (In the old days of Java 1.0, the environment was Emacs and Make. Make + Java == headaches.) (Some would say Emacs is an OS. Heh.)</p>
<p><strong>So Why Run Linux At All?</strong><br />
Every oneof my work laptops (a succession of Dell&#8217;s broken by a Thinkpad) has come with Windows installed; somewhere in 2003-2005, Blackdown&#8217;s JDK became available, before Sun was willing to support Linux. Prior to that, the Windows JVM was faster than the Solaris JVM for concurrent operations; for a long while Solaris&#8217;s JDK was mired in green_threads and such. But even the early Blackdown JDK delivered better performance on Linux than Sun&#8217;s own JDK did on Windows &#8212; I went where the speed was. Plus, for server applications, Java really was &#8216;write-once-run-everywhere&#8217;. So I worked hard to keep that Linux partition running as laptops came and went.</p>
<p><strong>What Went Right?</strong><br />
When I got my current laptop, a Dell D830, over two years ago, I decided to stray from my Debian roots. The last laptop had introduced SATA, and has been a real pain to get Debian installed on as SATA support was new and wifty. This time around I decided to try a stock Ubuntu install; <em>Gutsy Gibbon</em> I think. It just flew in. Installation was trivial. I waded through the GCJ junk and got Sun&#8217;s JDK installed. Again, the same programs on the same machine under Java were faster under Linux than under Windows XP. Life was good.</p>
<p>Sure, suspend/resume was a fond hope, Flash lagged in terms of support, yatta-yatta. But for me, Eclipse + Linux + Java was fast, fast, fast.</p>
<p><strong>What Went Wrong?</strong><br />
I kept up the install, moving from <em>Gutsy</em> to <em>Hardy</em> to <em>Ibex</em>. Things stayed good.  I liked KDE3.</p>
<p>Then I updated to <em>Jaunty</em> and I noticed something. For the first time, Java under XP was nearly as fast as Java under Linux. It didn&#8217;t seem that Windows had gotten any better, rather it seemed like there was more gunk in the works in Ubuntu. Plus, either within the release or on purpose, I tried KDE 4.0. It wasn&#8217;t that I didn&#8217;t like KDE 4; but it just didn&#8217;t help me work any better, at a cost of familiarlity (I was compiling KDE 2 for Solaris a lifetime ago; I liked KDE3). Suspend/Resume were still missing, and Nvidia seem to hit a pothole with their drivers. Multihead was still a pain in the ass when you moved between multiple setups daily.  I found myself sticking to Windows more often. In the last three months, I use Windows exclusively.</p>
<p>Then Karmic came around. I thought &#8220;Hey, there has been lots of rumbling about laptop support; maybe they fixed a bunch of stuff&#8221;. So I dist-upgraded. That did not go well; lots of stuff was in odd states, partial packages, strange error messages, general weirdness. I figured, I&#8217;d steadily upgraded across multiple releases &#8212; moving my partitions across machines &#8212; maybe it was time for a clean install? So I burned a CD, tar&#8217;d up my home directory, and installed from scratch.</p>
<p>Karmic is neat! Lots of stuff that just works, lots of eye-candy, cool.</p>
<p>Except.</p>
<p><strong>It was slow as molasses.</strong></p>
<p>I mean, ridiculously slow. I have a test suite (all Java) that I run multiple times a day. Around a thousand tests, across the creation and deletion of twenty-plus database servers.  Under Windows it takes around 2000 seconds. Left to run overnight, it took over <strong>4.5 hours</strong> on the exact same machine under Karmic.</p>
<p>9X Slower? WTF?</p>
<p><strong>Turkey Troubleshooting</strong><br />
My family had a stay-at-home Thanksgiving. My girls watched Mythbusters for hours. I spent most of it installing various Linux distros and trying things.  It was painful, and ultimately fruitless, but for an accident.</p>
<p>First, I realized the cpu frequency scaling was keeping my processors at 800Mhz, instead of 2.2Ghz. Further rooting revealed that cpufreqd, when installed, had a rule to limit the frequency to 800Mhz when the temp went above 55C. That was a bit low for my chip, so I removed that rule for the purposes of investigation. That was fun; I could force the system to run at 2.2Ghz, but the temp show up past 95C! I halted the tests before things got melty. (BTW, if you don&#8217;t bother to check your CPU speed, you can just be plagued by the feeling that your machine is slow, never realizing it is running slowly. The Gnome CPU Freq applet is a help here.)</p>
<p>No ACPI fan registered at all. The I8K modules see the fan, and can even make it spin faster, but after 3-5 seconds the fan would slow down. Still the system would zoom up past 80C.</p>
<p>Switching back to Windows gave me my first clue &#8212; the fan came on, louder than it ever was under Linux, and spun madly for around five minutes. Running the tests showed the CPU temp never getting above 70C. Perhaps there were fan control issues? I found various comments to this effect, lots of random cpufreq comments in the kernel changelogs, and a number of really interesting bug reports in Launchpad. <a href="http://ubuntuforums.org/showthread.php?p=7399158#post7399158">This</a> forum post sums things up nicely. Lots of frustration, apparently since <em>Jaunty</em>, precious few answers.</p>
<p>I ran through <strong>Debian Stable</strong>,<strong> Fedora 12</strong> (very nice), and <strong>Arch Linux</strong> (also nice if you are willing to spend a bit more time managing your system). <strong>Gentoo</strong> looked attractive, but I was too cranky by that point. All the systems performed the same, with minimal fan speed and lots of overheating. Only Fedora seemed to match the polish of Ubuntu; only Arch matched the package management of Debian/Ubuntu. FWIW.</p>
<p>Sunday night I bagged it; resigning myself to leaving Linux behind for at least a while. I don&#8217;t really have time for a distro I have to work to maintain. This laptop is a tool. My boss will happily fail to pay me for screwing around with Linux.</p>
<p><strong>Eureka!</strong><br />
I went into the office Monday, and I had a problem. The last distro I had installed, Arch, never picked up my Windows XP partition as bootable, and it wasn&#8217;t in the Grub menu. I could noodle around in Grub, or I could just install Ubuntu again. Hey, they might fix it someday? Maybe in <em>Lucid</em>?</p>
<p>We couldn&#8217;t find a blank CD. What are the odds? Then we found an old one, but Brasero under Arch failed to burn it. Blech.</p>
<p>Then my Release Engineer/IT Guy/Resident Mad Scientist says he thinks he has one already made up. We run Ubuntu on a batch of Dell servers, so it is plausible. (any guesses where this is going?) But he doesn&#8217;t have Karmic Desktop &#8212; he has Karmic Server.</p>
<p>What the hell &#8212; I use the laptop as a server for all intents and purposes anyway, so what could it hurt?</p>
<p>I got it installed, then I installed X, gnome-core, sun-java6, and Eclipse. Ran my test. Blinked. Listened as the fans spun mightily.</p>
<p>Temp never got above 67C. Tests completed in 1799 seconds. Ha! Victory!</p>
<p><em>Dance of the happy coder!</em></p>
<p><strong>Wha-at Happened?</strong><br />
Got me. I have some theories.</p>
<ul>
<li>no acpid running. NO acpi modules installed. Yes, this means no suspend/resume &#8212; I don&#8217;t miss it. Boot is so fast I don&#8217;t care anymore. I suspect the kernel ACPI code of being &#8230; not quite happy with my D830.</li>
<li>different kernel &#8212; Ubuntu server installs the PAE kernel by default. What else might be different in that kernel?</li>
</ul>
<p>Something is now keeping it&#8217;s grimy paws out of the BIOS&#8217;s way when it comes to fan control. Someone with more time than I have can work their way incrementally from an Ubuntu Server install to an Ubuntu Desktop install and figure out where the tripwire is.</p>
<p><strong>But Ubuntu Server saved Linux for me.</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Exception in thread "main" java.lang.NoClassDefFoundError]]></title>
<link>http://interopy.in/2009/12/01/exception-in-thread-main-java-lang-noclassdeffounderror/</link>
<pubDate>Tue, 01 Dec 2009 06:06:45 +0000</pubDate>
<dc:creator>Ranjan Kumar</dc:creator>
<guid>http://interopy.in/2009/12/01/exception-in-thread-main-java-lang-noclassdeffounderror/</guid>
<description><![CDATA[Suppose you are trying to run the simple Java class in the current directory where you have the .cla]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Suppose you are trying to run the simple Java class in the current directory where you have the .class file also. Suppose you have <code>GetProps.class</code> file in <code>C:\Test</code> directory and the command you run is the following:</p>
<p><code>C:\Test&#62;java GetProps</code></p>
<p>and you are getting the following exception:</p>
<pre class="brush: java;">
Exception in thread &#34;main&#34; java.lang.NoClassDefFoundError: GetProps
Caused by: java.lang.ClassNotFoundException: GetProps
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: GetProps.  Program will exit.
</pre>
<p>Then probably the reason is that the current directory in not in classpath environment variable. So add the current directory &#8220;.&#8221; in the classpath or you run the above command as the following:</p>
<p>C:\Test&#62;java -classpath &#8220;.&#8221; GetProps</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
