I have an app that listens a UDP port.
When I execute my app which is packaged in a JAR file with javaw -jar myjar.jar
, it can receive packets.
Strangely, if i execute it with java -jar myjar.jar
, it doesn't receive any packets.
My app doesn't use console for anything. Shouldn't these two commands be identical except omitting the console as noted in docs?
As java and javaw are different programs they can have different settings in Windows for example.
Windows has different restriction on a per executable basis.