IDEA中配置JDK打开 File->Project Structure,如下图所示:
Eclipse配置JDK:window -> preference -> java -> Instralled JRES:添加本地JDK