Adjust runtime to WildFly 8

Remove specific JRE in favour of a target default.
Replace deprecated invocation with new style