python - Mac OS ElCapitan: java -version command not working -


i'm trying make standford ner package work on mac. using anaconda , python 2.7 (ipython notebook). following steps given here: http://www.nltk.org/api/nltk.tag.html#module-nltk.tag.stanford. while executing last step, gave me unsupportedclassversionerror.."xy.z" "52.0" means need upgrade java 8. upgraded java 8, java -version command still showing java 7. tried fix using solution given here: after upgrading java8, javac still shows 1.7. instead of removing, renamed directory. these following commands exec:

cd /system/library/frameworks/javavm.framework/versions/ mv current current_old ln -s /library/java/javavirtualmachines/jdk1.8.0_05.jdk/contents/ current 

then after java -version command not working. realized directory name incorrect , tried replace using mv current_old current, still command not working.

how can restore java?

able working again! did restored legacy java 6 link: https://support.apple.com/kb/dl1572?locale=en_us

then java -version showing me latest version java 1.8. able start java ide now.


Comments