IntelliJ IDEA - "Imported project refers to unknown jdks JavaSE-1.8" while import Eclipse projects

Zwedgy :

I tried to import Eclipse project to IntelliJ IDEA, but I got this error:

enter image description here

GhostCat salutes Monica C. :

The eclipse project description contains a reference to a "manually" defined JDK (named JavaSE-1.8).

Just go forward and define an SDK for your project within IntelliJ yourself. See here for the necessary steps:

To define a JDK and a mobile SDK in IntelliJ IDEA

Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).

In the leftmost pane, under Platform Settings, click SDKs.

Above the pane to the right, click  and select JDK.

In the dialog that opens, select the installation directory of the JDK to be used and click OK.

... (obviously you don't need the Java ME mobile specific things listed in the original link)

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=461779&siteId=1