Tuesday, 20 October 2009

One JAR for all your JARs

Sometimes it is more convenient to package your Java application into a single JAR which includes all dependencies and works just like an executable. This seemingly simple objective becomes complicated when the dependencies include other JAR files as one can run into JAR Hell with the Java Class Loader. One possibility of achieving the goal of having a single executable jar is using One Jar.
The unique aspect of OneJar is that dependencies can be bundled into the executable Jar in their native form without unpacking the classes and the custom class loader resolves and loads required classes from within the dependent jars. The default Java class loader can only load classes from the file system, it cannot look inside other jars for the required classes. To achieve loading of classes from within other jars, a custom class loader is required which is provided by One Jar.One Jar also provides an Ant and a Maven2 task and can be easily integrated into your build cycle.

Tuesday, 6 October 2009

Scalable Vector Graphics

Scalable Vector Graphics provide a rich source of functionality that allow applications to manipulate and respond to the user interactions with the image. Creating and modifying SVG images is possible using one of the several open source tools available.

Batik SVG Toolkit is an impressive Java based open source SVG toolkit that provides libraries for the dynamic manipulation of SVG objects from within a Java application. While Batik provides a rich array of functionality, it somewhat lacks a good WYSIWYG editor.

A good WYSIWYG editor for SVG Graphics is provided by Inkscape which is another open source SVG editor with several advanced editing features such as (markers, clones, alpha blending, etc.)

Monday, 6 July 2009

Wimbledon 2009: Federer won but Roddick didn't lose

Last night, Federer created history by overtaking Sampras as the all time winner of 15 Grand Slam titles. In doing so, he set another record by appearing in his seventh consecutive Wimbledon final but spare a thought for the man who stood in his way and threatened to spoil the party, Andy Roddick.
Roddick came to this final a record of 18 loses and only 2 wins against Federer. This was hardly encouraging however, armed with a new strategy that attempted to stifle the free flowing Federer and a fitter body, Roddick unleased a barrage of serves that kept him toe to toe with the FedEx. Infact throughout the match, it was Roddick who on several occasions threatened to seize control and run away with the match, however Federer being the great Champion that he is used all his experience to finally overcome Roddick in the longest fifth set in the annals of the competition. Well Done Federer (for the win and for also regaining the number one ranking) but also Well played Roddick!!

Monday, 8 June 2009

French Open 2009: The FedEx is a Champion..AGAIN!!

Federrer finally got what he wanted.A complete Slam!True, he didn't have to overcome the challenge of having to face his greatest nemesis, Rafa over the net in the finals, yet there was no question about his form and ability. After a scratchy beginning to the tournament during which he dropped two sets against Tommy Haas and nearly went to the brink, Federrer regained control and played down the nerves to take the Championship in three sets against Robin Soderling. The final was a bit of an anti-climax with Federrer completely dominating the match but for a Federrer fan like me, it was a sweet win.Well Done Federrer!!