jump to navigation
Le Petit
Support EFF

Freedom of Speech

Human Rights

petikr Badge
A petikr badge showing public photos from Clas le Petit. Make your own badge here .

The Duke of Java is Finally Free Monday 2006-11-13

Free at last!
As rumors buzzed as flies for the last couple of months, Sun has finally announced that it releases its Java implementation under the GNU GPLv2 license.
The Duke is free, free at last. But what does it all mean?

For a long time during the first successful years of Java, many developers urged SUN to submit Java to one or the other of the standards bodies of the world. The intention was to make sure that Java, the platform wouldn’t crash into the non standards diversity, that would make it unusable. But SUN stood firm and demanded that all additions to the platform, and all its implementations should follow the “pure Java” standards set out by SUN.

Microsoft, who licensed Java from SUN, wanted Java to be seen as just another programming language, and made additions to it, that it thought was missing. They did this in violation of the license and after a long legal battle had to pay dearly.

As Java has developed and matured over the years, many Java experts has grown comfortable with SUN:s firm grip on the language and the platform, and have come  to believe, this is the  way  for Java to survive .
So what now? What will happen when Java is GPL’d ? Will it turn as wild as JavaScript or CSS and other web technologies, with a plethora of small differences between implementation, that will drive developers nuts ?

Read this ZDNet article by  Martin LaMonica, for more!

J2ME MicroEmulator Sunday 2006-02-19

If you have an interest in working with Java for the mobile world, you are used to Midlets and working in the restricted libraries of CLDC and MIDP. Whether you use an IDE like JBuilder or Eclipse, or code in atest editor, you certainly have a mobile phone emulator for your workstation to test your Midlets before you deploy. Most developers use SUNS Java Wireless Toolkit. The mobile device manufacturers like Nokia and Ericsson have their own tool kits often based on SUN’s. In the test and evaluation of your Midlets, it is essential that what you see on your screen mimics the look and feel and behavior of the real device as closely as possible.

But did you know that you may also demonstrate your work on the web using Applet technique? I found an applet based Midlet runner when I was experimenting with J2ME for my now ageing Ericsson T610. Its the MicroEmulator written by Bartek Teodorczyk, a slowly developing Source Forge project.

It is a very useful and expandable CLDC/MIDP 1.0 mobile device emulator. MIDP 2 is here but a lot can still be done with the earlier standard. Not only is there an Applet version for presentation on the web of your Midlet based games, calendars or web servers, but there is also versions of the library using JFC/Swing and SWT mostly used for stand alone emulators for the workstation.
The real beauty of the MicroEmulator is that, while it comes with a default generic look, you can prepare your own skin to adapt to any mobile device featuring a set of basic functions.

Back in 2004, when I was more active in this field, than I’ve been lately, I wrote a fairly complete tutorial for Skinning the MicroEmulator. The example is not surprisingly a skin for the T610, but the technique is applicable for most mobile devices. Go have a look in my lab and feel at home. If you decide to give it shot, all source code is there as well as links to things you may need – a demo even of my results.

If you have an opinion or if you find any errors, you are welcome to drop me a line ( Contact above ).
And, don’t pay to much attention to the rest of Petit Labs, it’s a mess but I’m working on it.