11

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

enter image description here

GhostCat
  • 137,827
  • 25
  • 176
  • 248
Zwedgy
  • 320
  • 2
  • 3
  • 17

2 Answers2

6

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)

Community
  • 1
  • 1
GhostCat
  • 137,827
  • 25
  • 176
  • 248
1

Here they had a similar problem, but with android sdk

You must edit Project SDK in Project Structures > Dependencies to existing Java JDK

Szymon
  • 75
  • 12