I have tried all approaches I can find online, but none of them works.
I want to set JAVA_HOME
and PATH
environment variables permanently, so that in IntelliJ I can issue commands like "mvn".
I have written my script into .bash_profile
as shown below:
screenshot
But after I restarted my Mac and issued echo $JAVA_HOME
, the output is still empty.
I also tried launchd.conf
as said in this answer, but it didn't work either.
Could someone help me here? Thanks in advance!