Have you ever tried to use Java interactive with the upcoming JShell? If no, take a look into my former blog [1]. Today I’m going to write about using the Java shell together with NetBeans. Continue reading “Cool stuff: NetBeans and JShell”
Author: Michael Müller
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”
Multi carets editing
NetBeans 8.2 is scheduled to be released end of summer 2016. One popular feature is called pin watches. During a debug session you may define several watches in the variable window to view the current content of a variable or value expression. With pin watches you may pin such a watch directly to the source code. Amongst others Geertjan described this amazing feature in his blog [1].
Today I’m going to describe another upcoming feature, which is yet available if you download a nightly build [2]: Editor Multicarets. Continue reading “Multi carets editing”
Keine EU-Beitrittsverhandlungen mit der Türkei
“Wir (die Türkei) gehen unseren Weg und ihr (die EU) geht euren Weg”, so wurde heute der türkische Präsident Erdogan in den Nachrichten zitiert. Wer solch getrennte Wege gehen will, dem sei gesagt, dass er sich auch nicht um die Aufnahme in den Club der anderen bemühen darf.
Die Beitrittsverhandlungen der EU mit der Türkei sind umgehend zu stoppen. Wenn aber in der Türkei unter einem anderen Präsidenten wieder demokratischere Töne angeschlagen werden und die Pressefreiheit wiederhergestellt ist, dann mögen die Verhandlungen wieder aufgenommen werden.
Software conferences
Now it’s more than one month ago since I wrote my blog about jshell. Few days after that, I attended JavaLand. Sadly I had no time to blog or write except my German report about this conference [1]. Continue reading “Software conferences”
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)”
Interactive Java using Nashorn (part I)
Have you ever needed to evaluate a Java class, or just perform some quick tests to see how a statement is working? Writing a full Java program just to test a single command might be a solution. A better one would be to use a REPL (Read Eval Print Loop) tool for an interactive test of Java constructs.
I’m going to write about the upcoming REPL tool of Java 9 soon. But before, I like to show how to perform this task with the recent Java 8 version. Continue reading “Interactive Java using Nashorn (part I)”
NetBeans and Terminal Window
Sometimes you need to invoke a command line tool during your work with NetBeans. Instead of switching to another window, it is possible to invoke a terminal within NetBeans.
If you expect this in the View or Tools menu, you would not find this tool. Like a couple of other useful windows or tools, you’ll find it in the Window menu, which does not only contain a list of open windows (within the Documents… submenu).
Open Window -> IDE Tools -> Terminal.
By now, NetBeans would not start the system command line prompt, but a Unix alike command shell. Thus, if you like to use the terminal window and your operating system is Microsoft Windows, you’ll need to install cygwin first.
I’m going to write about some useful command line tools soon. Stay tuned!
NetBeans Day Cologne
The first NetBeans Day Cologne is scheduled for Sept 9th 2016. Today I’m proud to announce the preliminary agenda. Continue reading “NetBeans Day Cologne”