The reason for the warning/error is that in Java 8 the permanent generation was removed.
You can change settings in IntelliJ idea not to add -XX:MaxPermSize
. Go to settings page and click edit next to VM Parameters.
Remove parameter called -XX:MaxPermSize
.