Before, my IntelliJ run well. But I used java 6 , so my project can not run with gradle.
I switch java to version 8 by command sudo update-alternatives --config java .
I checked version java -version was 1.8.0_312. It 's OK, but in IntelliJ, the Java have version 6. Then, I change version java in IntelliJ by solution :
From the main menu, select Help | Find Action or press Ctrl+Shift+A.
Find and select the Choose Boot Java Runtime for the IDE action.
Select the desired runtime and click OK.
And Restart IntelliJ.
Final, my IntelliJ can not open again. I try remove and install again or remove java and install again but it does not work.
I run ./idea.sh it have error:
OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.intellij.util.lang.PathClassLoader"). To use archived non-system classes, this property must not be set
Error: LinkageError occurred while loading main class com.intellij.idea.Main
java.lang.ExceptionInInitializerError: null
Please help me , thank you very much