Update java_main.yml

added server keyword