Racooma and Company

How to reflect env profile to GUI apps on macOS

What’s your favourite DLT product?
Me? R3 Corda, and v2.0 was released recently!

I had some trouble when I developed on IntelliJ IDEA.
Although I exported JAVA_HOME in .bashrc, it wasn’t reflected to GUI app(IDEA).

Please see the following steps.

Step1. set JAVA_HOME in your .bash_profile

Step2. make .osx-env-sync.sh

~/.osx-env-sync.sh

Step3. make osx-env-sync.plist

~/Library/LaunchAgents/osx-env-sync.plist

Step4. change mode the file to executable

Step5. make these preference valid

Done! Please check if your GUI apps can read JAVA_HOME!!
I hope this article could be useful.

Exit mobile version