I've downloaded Intellij ultimate version and I am trying to open
idea.sh but it tells me this:
"JDK Required: 'tools.jar' seems to be not in IDEA classpath. Please ensure JAVA_HOME points to JDK rather than JRE."
I don't know what to do, can anybody help? I've searched in Google but couldn't find anything.
all I know is that I have jdk because when I use
java -version it tells me something, but I can't locate the path or somethings wrong
echo $JAVA_HOME returns
this happened after I've installed
java-7-openjdk before that I had
java-9-oracle and I thought it was jdk but there were still problems
I've tried without sudo and everythings seems fine.