'JetBrains IntelliJ Error launching Intellij Platform - Error invoking main method

I have IntelliJ IDEA and other JetBrains products installed and they worked great (PyCharm, Android Studio, Clion, WebStorm) till today, now I just get opening message:

Error launching Intellij Platform - Error invoking main method

I have installed:

C:\Program Files\Java\jdk1.8.0_25

C:\Program Files\Java\jre1.8.0_25

and JAVA_HOME is pointing to jdk.

I posted at: https://devnet.jetbrains.com/message/5533036#5533036 and https://devnet.jetbrains.com/thread/459951


I installed (clean) Windows 8.1 and now it works, but there should be option to wipe all java configs from Windows to avoid such mess, cause this is not the solution.



Solution 1:[1]

I meet this error today. Java update message jump out when I work with AndroidStudio. I accept it but my AS can't display res files after installation. I restart AS and see the error. I guess new version java produce the error. The updated java part is jre, version is 1.8.0_101, but jdk's version is still 1.8.0_92. So I download and install new version jdk(1.8.0_101, the same as jre). AndroidStudio successfully starts now. Maybe this solution can also work to IDEA.

Solution 2:[2]

For people who couldn't solve it by having the same version of JDK and JRE. Uninstall IntelliJ and also clean all the files that are not swept automatically by uninstalling. you can find them in C:\Users\Usuario\AppData on Local and LocalLow find the JetBrains folder and delete all the files related to IntelliJ. Then proceed to reinstalling it. That solved it for me.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Moyo.Shen
Solution 2 Ignacio Estevo