What manoj said is tried and seems to be the correct solution in my personal at home lab of various Java servers . Tried and tested. If you are still facing issue You can document the user scenario with screenshots and send to me via this platform
Warm Regards