Donnerstag, 15. August 2013

W-JAX München 4.-8. November 2013

Guten Abend,

heute möchte ich gerne auf die größte deutsche Java-Konferenzen, die W-JAX in Müchen im November, hinweisen.

Ich selber wäre gerne bei der Konferenz dabei, bin jedoch beruflich verhindert.

Die Early Bird Anmeldung läuft noch bis zum 12. September und ist preislich sehr interessant.




München, 12. August 2013 – Die W-JAX lädt einmal mehr mit einem umfangreichen Programm rund um Java, Architektur, Agile, Cloud und vielem mehr nach München. Vom 4. bis 8. November präsentiert die Herbstausgabe der JAX mehr als 160 renommierte Referenten aus dem IT-Bereich mit über 180 Vorträgen. Die Teilnehmer erwarten themenspezifische Vortragsreihen – die so genannten Special Days – informative Einzelvorträge sowie ganztägige Workshops.

Mit dem Workshop-Montag startet die W-JAX am 4. November in die fünftägige Konferenzwoche. In den ganztägigen und praxisorientierten Workshops zu Themen wie Java EE 7, JFS, GIT und Hadoop arbeiten die Teilnehmer gemeinsam mit erfahrenen Trainern hands-on anhand themenrelevanter Beispiele. Auf individuelle Fragen der Teilnehmer gehen die praxiserprobten Referenten ein und geben gezielt Hilfestellungen und Ratschläge. Die Workshops rund um Continuous Delivery, Eclipse 4.x Application Platform und Spring beschließen die Konferenzwoche am Freitag (8. November). 

Die W-JAX bietet den Teilnehmern während der Konferenzwoche insgesamt mehr als 18 sogenannte Special Days. Im Rahmen der themenspezifischen Vortragsreihen erhalten die Teilnehmer die Möglichkeit, ihr Wissen in ausgewählten Kernbereichen zu vertiefen. Der Agile Day und der JavaFX 101 Day geben am Montag (4. November) den Auftakt zu den Thementagen. Der Agile Day zeigt unter anderem auf, wie sich agile Vorgehensweisen gewinnbringend in Softwareentwicklungsprojekten umsetzen lassen. Im Rahmen des JavaFX 101 Days erhalten die Teilnehmer einen allumfassenden Blick auf die UI-Technologie.

Begleitend zur Hauptkonferenz der W-JAX (5. bis 7. November) präsentieren sich innovative IT-Unternehmen auf der Konferenz-Expo, welche sowohl über Produkte als auch Lösungen im eigenen Unternehmen informieren. Das Rahmenprogramm der Konferenz bietet am Abend Networking-Events wie dem sogenannten Ballroom, der den Teilnehmern die Möglichkeit bietet, mit Referenten, Unternehmen sowie anderen Teilnehmern in Kontakt zu treten. 
Alle Informationen zur W-JAX unter: www.jax.de 

Montag, 15. Juli 2013

Fixing multiple errors with search/replace in Eclipse

This is just a short post about a nice trick which I just found out while doing big changes to several projects in eclipse.

I had some problems refactoring a class due to too many previous errors and ended up having more errors due to a method which I moved elsewhere. Replacing the method call wasn't a problem, but I needed to add the import to the new Class too.

Applying a quick fix for adding the import to all these files at the same time in the Problems view didn't work out (seems like a small bug in eclipse). But when I did a right click on the problems view table I had the 'Show In' option and selected 'Project Explorer'. This resulted in a selection of all affected files in the explorer. Next I did go to the Search->File menu and hit 'Search In: Selected Resources'.

Now it was easy to search via regular expression for 'package (.*);' and replace with '\0\R\Rimport MyNewClass;'

Sonntag, 24. März 2013

Trying out Nashorn in Eclipse


Setup


Download Java 8 EAP b82 or greater from
http://jdk8.java.net/download.html
or go to
http://java.net/projects/adoptopenjdk/pages/AdoptOpenJDK#Starter_Level
to build Java 8 from source.

Go to
https://github.com/AdoptOpenJDK/NashornHackDay
and clone the Respository (or download a zip). The directory should be named 'NashornHackDay'

Download the Java Developers edition of eclipse if you don't have it installed yet:
http://www.eclipse.org/downloads

Create an Eclipse Project

  • Run eclipse and choose a workspace
  • You might want to install the 'Javascript Development Tools': Help->Install New Software: Select Juno Update Site, check 'Group Items by Category', Scroll to 'Web,XML,..' and select the plugin
  • Create a new Java Project Nashorn

Java calling Javascript

  • Copy TestInterop.java from NashornHackDay/java-interop/simple to the src folder of your eclipse project
  • Copy script.js to the main folder of your Nashorn project
  • Go to Menu: Window->Prefernces->Java->Installed JREs
  • Add the Java 8 JDK to the installed JREs by choosing the main folder of the JDK
  • Go back to your project
  • Open the Context-Menu of the Project and go to Properties
  • Under Java-Build-Path remove the JRE Library on the Libraries Tab
  • Add the Java 8 JDK on the same TAB via Add Library->JRE System Libraries
  • Exit the Dialog
  • Try to run the TestInterop.java now.

Javascript calling Java

  • Add a new folder called script in the project Nashorn main-folder in eclipse
  • Copy the *.js scripts from the NashornHackDay/examples folder into this location
  • Create a new script nashorn.sh in the NashornHackDay directory
  • Put this into the file
 #!/bin/sh

 $JAVA8_HOME/bin/jjs <path_to>/NashornHackDay/lib/hackday/bootstrap.js $1
 

  • Where $JAVA8_HOME should point to your OpenJDK 8 build/installation.
  • Change the <path_to> to the path of your NashornHackDay directory
  • Go back to eclipse and click on the small down arrow on the button right to the Run-Button in the Toolbar
  • Open the menu entry "External Tools Configurations"
  • Click on Program in the left navigation part and open the Context Menu: New
  • Put in the Following:
Name: RunNashorn
Location: <path_to>/NashornHackday/nashorn.sh
Working Directory: ${workspace_loc:/Nashorn}
Arguments: ${selected_resource_loc}

  • Go to tab: Refresh and select 'Refresh resources upon completion' and 'The project containing the selected resource'
  • Go to tab: Build and unselect 'Build before launch'
  • Go to tab Common and select 'Display in favorites menu: External Tools'
  • 'Close' the Dialog
  • Choose a *.js file from your script-directory and open the 'External Tools' chooser from the Toolbar again and choose 'RunNashorn'
  • Eclipse will run the *.js File with Nashorn now and show the results in the Console in eclipse

JavaScript Help

If you downloaded the nashorn source as described on the GitHub page or have the source of the OpenJDK then go to the docs directory to find a
Java Scripting Programmer's Guide (JavaScriptingProgrammersGuide.html).