So, Eclipse was driving me nuts today. While trying to load up the hibernate console in the JBossIDE, it kept failing with a class cast exception due to incompatible javas versions and telling me it was using java 1.4.2. I had upgraded to 1.5 many weeks ago and this was frustrating. I googled a bit and found this page on switching the CurrentJDK link. I was unaware of this pesky problem. I had set JAVA_HOME to 1.5, used the apple java switcher to point to 1.5, but apparently that’s not enough. This link also has to point to 1.5. That resolved my class cast exceptions … now to resolve some others ;-)

cd /System/Library/Frameworks/JavaVM.framework/Versions

sudo ln -fhsv 1.5.0 CurrentJDK
: Work

Leave a Reply

Previous Post
«