add JAVA_OPTS and RESTX_OPTS variables (fixes #56)