title: How to Set Java JDK Environment Variable for Mac OS X 10.8 Mountain Lion
body: <p>Can anybody tell me how to set environment variable for Mac OS X 10.8 Mountain Lion. 
  I just upgrade my Mac to Mac OS X 10.8. When I run a script. It said that </p>
  
  <p>"/Users/ruijiaoli/lejos_nxj/bin/nxj: line 64: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java: No such file or directory"</p>
  
  <p>I found that JDK in the directory within the path above. And it worked well in Mac OS X lion.
  Is the JDK path changed in Mac OS X mountain Lion? The version of Java on my system is 1.6.</p>