You should probably first use something like Autoruns and or Process Monitor, from Sysinternals. (Google it) to determine from where java.exe is firing and grabbing the port and take the appropriate steps to prevent that from happening because I suspect that if you reboot the computer as the error message suggests then your issue will begin all over again.
Then you will need to determine if you have a problem with either a third party firewall product or antivirus security suite (with a firewall like applet), or even the windows firewall itself. Uninstall any such third party programs follow that up with their respective vendor specific proprietary uninstaller/removal tool and then experiment with the windows firewall. You can test briefly by simply turning it off, but you will more than likely need to create an inbound and outbound rule to support your program. The software vendor should be able to help you with that.