I'm new to Java, I'm trying to compile the simplest code: hello world ,
package com.ninet.first;
public class Test {
public static void main(String[] param) {
System.out.println("test");
}
}
when i run it, it says:
COMPILATION COMPLETED WITH 1 ERROR 0 WARNINGS
ERROR: FAILED TO CREATE A SELECTOR
no class is created. i have followed couple video tutorials how to use intellij, did everything as in the tutorials, tried to re install IDE many times, no changes!! Project SDK are set, I'm using 1.6
By the way i have no problems in Eclipse. I can also compile and run my classes in command line.
Take a look at IDEA-98407 , does that solve your problem? Quote:
Then you'll have to turn off Settings | Compiler | Use external build.
Please check this Knowledge Base document for the networking related issues.
Also check my answer here .
Compiler works in a separate process, hence the requirement for the network connection for the IPC, however it's not normal that your firewall is blocking connections on local interface (127.0.0.1) by default.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.