Up again

Sadly this blog’s server crashed with a hardware error six years ago. I could fix a main board issue, but it still failed randomly after some hours or days. Due to lack of time I didn’t check this so far. Now I discovered a mass of bad blocks on my disk. Nothing to repair.

Anyway I could save most of the files and set up a new server.

I’m curious, whether I’ll find time to work again on my blog…

New NetBeans Dream Team members

NetBeans recently became an Apache project. Some people had been afraid that NetBeans ends up like OpenOffice, whilst others appreciated that step enthusiastic. I don’t know what future brings, but the NetBeans community is still vibrant. And the NetBeans Dream Team just incorporated seven new members. Continue reading “New NetBeans Dream Team members”

NetBeans 8.2 available

During the last days, most news about NetBeans had been about the transition to Apache. Luckily this did not affect the ongoing development. NetBeans 8.2 had been successfully tested and is available now [1]. If you still get NetBeans 8.1 displayed, then simply refresh your page (in most browsers by hitting the F5 key). Continue reading “NetBeans 8.2 available”

NetBeans and the Java Platform Shell

In my last blog [1], I showed, how to use the upcoming Java Shell within a NetBeans terminal window. By now, this is fine using Linux. Using Windows, you need to install cygwin to run a terminal window, because the native windows prompt is not supported yet. And launching JShell within the NetBeans (cygwin) terminal still has a display issue. Today I tried an alternative: The Java Platform Shell. Continue reading “NetBeans and the Java Platform Shell”

JSF composite components

Let’s assume, we use JSF to write an application which offers a simple registration form. This form queries the user for his first name, last name, and email. The page definition might be similar to the one following, but can’t we avoid the repetition of code? Continue reading “JSF composite components”

Interactive Java with jshell

So far we used Nashorn to emulate a Read-Eval-Print-Loop (REPL) for Java. But Java 9 can do better. This version includes a real REPL – the command line tool jshell. Although the Early Access (EA) version is not intended for production, you still can use it for interactively working with Java. Continue reading “Interactive Java with jshell”

Interactive Java using Nashorn (part II)

In my last blog [1] I showed you how to invoke Nashorn, how to add a Java class and how to invoke a method on it. Now, we want to perform some queries on a bigger amount of data. You can find a description of this data structure on the free sample pages of my book “Java Lambdas and (parallel) Streams” [2]. You may download the sources of the data generator from source section of the associated web site [3]. Continue reading “Interactive Java using Nashorn (part II)”