[sr-dev] git:4.1: app_java: detect JAVA_HOME and use proper libgcj versioning