1. install java 7u21 from here:

  2. set these variables:

    export java_home="/library/java/javavirtualmachines/jdk1.7.0_21.jdk/contents/home"
    export path=$java_home/bin:$path
  3. run your app and fun :)

(minor update: put variable value in quote)


from what i've found online, this is a bug introduced in jdk 1.7.0_45. it appears to also be present in jdk 1.7.0_60. a bug report on oracle's website states that, while there was a fix, it was removed before the jdk was released. i do not know why the fix was removed, but it confirms what we've already suspected -- the jdk is still broken.

the bug report claims that the error is benign and should not cause any run-time problems, though one of the comments disagrees with that. in my own experience, i have been able to work without any problems using jdk 1.7.0_60 despite seeing the message.

if this issue is causing serious problems, here are a few things i would suggest:

  • revert back to jdk 1.7.0_25 until a fix is added to the jdk.

  • keep an eye on the bug report so that you are aware of any work being done on this issue. maybe even add your own comment so oracle is aware of the severity of the issue.

  • try the jdk early releases as they come out. one of them might fix your problem.

instructions for installing the jdk on mac os x are available at jdk 7 installation for mac os x. it also contains instructions for removing the jdk.

Related Query

More Query from same tag