Why does a simple Hello World program in Java prompt my firewall to pop up?
已回答
Soon as the try to run the program, Windows Firewall pop up requesting access to domain. Why would Intelli IDEA Ultimate need internet for such a simple run? This sort of thing gets me paranoid.
This is all it was:
public class Hello {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
请先登录再写评论。
IDE is using a special agent when running your app, it connects to this agent using localhost sockets so that it can control the app execution, get thread dumps and perform graceful shutdown of the running app.
This behavior is by design and firewall will alert you even on the localhost connection.
Can you attach a screenshot of the firewall request? What process is displayed there? Why do you think that it requires non-local access?
I don't think that it requires non-local access. It shouldn't, not for a little beginner program like that. Though this is an education license, do you think it wants internet in order to check every location I use IntelliJ at?