You receive an error that the JAVA_HOME variable is not set even if you have set JAVA_HOME
On Mac OS X, after starting the installation of Maximo® Anywhere, you receive an error that the JAVA_HOME variable is not set even if you have set JAVA_HOME in your .bash_profile.
Symptoms
You receive an error that the JAVA_HOME variable is not set.
Resolving the problem
Setting JAVA_HOME in .bash_profile does not affect applications started from Finder or Dock. Create an environment.plist file in ~/Library/LaunchAgents/ with this content, substituting your actual level of JDK:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>my.startup</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
<string>
launchctl setenv JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home/
</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
The plist activates after you reboot the system. You can also use launchctl load ˜/Library/LaunchAgents/environment.plist to launch it immediately.
Restart Installation Manager and retry the installation.