Friday, February 22, 2013

Java Update with Ask toolbar - I did it!

A recent articel from Ed Bott handles the Java update process and the integrated Ask toolbar installation option. I will not go into detail (that I don't know) about this but I mostly agree with +Cay Horstmann - who Didn't Ask for a Toolbar with That Java.

I am passionate about Java. I use it every (working) day. The product and it's ecosystem are amazing. Today I feel the need to give something back!

Therefore I installed Java INCULDING the Ask toolbar
Oracle, you really deserved it. Feel free to use the earned money - no matter what for.

OK, to be true, I didn't installed it on my computer. Instead it was a perfect opportunity to test VirtualBox - another free Oracle product that comes (as far as I noticed) without an Ask toolbar installation option.

And because I am passionate about Java I will now delete the created "Java Update virtual machine" and I maybe also sign the petition against the Ask toolbar integration.

Oracle, if I can do anything else for your success - please let me know. I will do my very best - Thanks for sharing Java!

Thursday, February 7, 2013

Time to meet Java 8 with Lambda Expressions!

The Java 8 development is on its way an the (nearly) feature complete JDK 8 M6 (build b75) release was published on 2013/01/31. This version contains the Lambda Expressions - so time to meet!

The JDK 8 M6 is available on the JDK 8 project site. The installation process is simple and (as far as I noticed) does not contain any Ask toolbar installation option ;-) After the installation my system featured the following java version:

C:\>java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b75)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b17, mixed mode)

The Project Lambda provides a Netbeans 8 Nightly Build with experimental Lambda support but as my first example is trivial I just ignored the IDE compiler warnings and compiled and ran the class from the command line.

And that's it. Comparator implementation with Lambda Expressions:

As hoped (and expected) the output is:

[1, 2, 3]
[3, 2, 1]

 No big deal but I am glad it worked! Now I am ready to move on...

Some links:

Update: It turned out that the JDK M6 build is not feature complete yet. The current status is explained by Mark Reinhold here