Mit JShell sind wir nicht auf unsere Maschine beschränkt, sondern haben Netzwerkzugriff, was einige interessante Möglichkeiten eröffnet.
With JShell we're not confined to our machine and have networking access, this opens up some interesting opportunities.
JShell deckt ein breites Spektrum von Use Cases ab, zuvorderst wird es jedoch allen Entwickeln dabei helfen, ihre neu erworbenen Fähigkeiten auf schnellem Weg zu testen, egal ob es sich um schnödes Java oder eine neue Bibliothek handelt.
JShell has a wide range of use cases but first and foremost, it will help new and existing developers quickly test their newly learned skills.
In der folgenden kurzen Session gehen wir einen schnellen Testlauf mit JShell v0.61 durch (Es gibt ein bekanntes Problem mit OSX 10.10.3, bei dem sich der Prompt mit Teilen des Outputs mischt, aber das sollte bald gefixt werden)
In the following short terminal recoding we're going through a quick test run with JShell v0.61 (There's a known issue with OSX 10.10.3 where the prompt mixes with some of the output so please don't mind that, it'll probably be fixed soon)
Ein Rückblick auf das soeben gesehene: Einige der interessantesten Features von JShell
Reviewing what we just saw: Some of the most interesting features of JShell
Hierzu zählen zum Beispiel die JShell, die Erweiterungen der Process API, Factory-Methoden für Collections und die Erstellung von UTF-8 ResourceBundles.
These include, for example, the JShell, the extensions of the process API, factory methods for collections and the creation of UTF-8 resource bundles.
Das offizielle Release-Datum von Java 9 liegt - zur Zeit - im September 2016, die Early-Access-Version verfügt allerdings bereits über eine voll funktionsfähige Version von JShell.
The official Java 9 release date is currently set to September 2016, but the early access version already has a fully functional version of JShell.
Öffnet man ein multi-modulares Projekt gemeinsam mit der JShell in NetBeans, sieht das in etwa so aus
An open multi-modular project together with JShell open in NetBeans looks as follows
Mein erster Boxenstopp war dabei das auch unter dem Namen „Projekt Kulla" bekannte JShell - dank ihm konnte ich überhaupt erst genug Mut aufbringen, mich mit der Early-Access-Version von Java 9 zu beschäftigen. Ganz genau!
The first stop was JShell, which also goes by the name of Project Kulla; the reason that got me to gather up the courage to try the early access Java version in the first place.
Desweiteren spielte, sorry, "zeigte" er Live-Coding mit JShell, der neuen Java REPL in Java 9, und führte vor, wie man mit Hilfe von Jigsaw und JLink ein kleines, an die eigenen Bedürfnisse angepasstes JDK erstellen kann.
Furthermore, he played, pardon me, "showed" live coding with JShell, the new Java REPL in Java 9. And he demonstrated how to create a little JDK with Jigsaw and Jlink, customized to fit one's personal needs.
Besser noch: Man kann dann NetBeans auch auf JDK 9 basierend ausführen und zum Beispiel die JShell direkt innerhalb von NetBeans nutzen.
Even better, you can run NetBeans on JDK 9, which means that you'll be able to use JShell directly inside NetBeans.
Des Weiteren hebt JShell Java auf die Stufe von Sprachen, die diese Möglichkeiten bereits seit geraumer Zeit bieten. Vielleicht wird es mit einem offiziellen API und einer besseren Kommandozeilenerfahrung die Grenzen sogar etwas weiter verschieben.
Moreover, JShell brings Java on par with languages that have these capabilities for a while now, and perhaps even pushes the envelope further, with an official API and a smooth command line experience.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.