Update java_main.yml

add server keyword with full path