3

Intellij launch error in a Windows Environment.

When launching from the "Start Menu" getting a popup window with the following error:

Could not find main class com/intellij/idea/Main

Seems like a possible classpath issue. Can anyone recommend a quick fix, maybe in one of properties files?

Jim G.
  • 15,141
  • 22
  • 103
  • 166
mba12
  • 2,702
  • 6
  • 37
  • 56

3 Answers3

3

For PyCharm, this worked:

  • Uninstall PyCharm
  • Download and install JDK 8
  • Set your system variables
  • Reinstall PyCharm
cb4
  • 6,689
  • 7
  • 45
  • 57
2

For me its resolved for IntellijIdea version 22, i was getting below error when i changed IntelliJ Default JRE to JRE 17 enter image description here

Just we need to remove "idea64.exe.jdk" for me this location is "C:\Users{UserName}\AppData\Roaming\JetBrains\IdeaIC2022.1\idea64.exe.jdk".

Yogesh Ukale
  • 135
  • 1
  • 1
  • 7
0

I was getting this error with jdk version 17, but when I switched to jdk version 11 the error was resolved.

Also set the system environment variable to your system's jdk location:

JAVA_HOME = C:\Program Files\Java\jdk-11.0.11
Fedor
  • 17,146
  • 13
  • 40
  • 131