_JAVA_OPTIONS environment variable on xenial

The xenial image sets the _JAVA_OPTIONS environment variable. Isn’t this a relic from the container-based (sudo: false) image?

Can this environment variable be removed from xenial? Otherwise each Java-based command emits something like _"Picked up JAVA_OPTIONS: -Xmx2048m -Xms512m" as the first line on the console.

Thanks! This will be resolved with the next image bump:

1 Like

Thanks! I just tried another build and it did properly pick up Java8

However I’m now getting this error for each of my tests

`Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter`

Is M2_Home set as an enviromental variable? Appears that could be an issue if so.

This seems to be working ok now in the current Xenial builds.