Fix for #480 Build fails due to trait RuntimeEnvironment takes type para...

...meters in samples/java/demo

Fixes #480