Hi Xianghui,
I should start out by mentioning that IDL 8.2 is not currently supported for use on Mac 10.10. IDL support for Mac 10.10 will become available at the next release of IDL and ENVI, which should be in a couple months. With that being said, here is a link to a help article which provides some additional information and links to help articles which discuss other topics in more detail.
http://www.exelisvis.com/Support/Help...
Specifically, I would suggest getting Java 6 and making sure you have X11/XQuartz installed and updated. The third article included in the link discusses uninstalling and re-installing X11/XQuartz which may be a good idea as well. It may not hurt to re-boot your machine if you have not done that since IDL was installed.