Why does a simple Hello World program in Java prompt my firewall to pop up?

Answered

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!");
}
}
0
3 comments

Can you attach a screenshot of the firewall request? What process is displayed there? Why do you think that it requires non-local access?

0
Avatar
Permanently deleted user

 

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? 

0

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.

1

Please sign in to leave a comment.