Problem Accessing javac with JAVA_HOME set

Dear executive,

I had installed dnf install java-11-openjdk-devel and jre.
The file is located at /usr/lib/jvm/java-11/

And i set the JAVA_HOME using following method:
export JAVA_HOME=“/usr/lib/jvm/java-11/”

I can access the javac from cli but not from intellij.

The error message is Invalid Gradle JDK configuration found. There is no bin/javac in /usr/lib/jvm/java-openjdk

Please help me on this as i tried with many workaround but no solution found yet.


Anyone please help me as i haven;t solve the problem.