fix JAVA_HOME for %build to %libdir/...-openjdk
give openjdk a try; mabe use fastjar
The Open Build Service is an openSUSE project.