Reputation: 2114
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?
Upvotes: 0
Views: 66
Reputation: 533720
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.
Upvotes: 2