What is the source of the discrepancy in Java versions: Java 6 (in Terminal, Eclipse) and Java 7 (in Java Control panel)? -
eclipse complains: jre version 1.6.0; version 1.7.0 or later needed run google plugin eclipse
.
in terminal, java concurs:
> java -version java version "1.6.0_65" java(tm) se runtime environment (build 1.6.0_65-b14-462-11m4609) java hotspot(tm) 64-bit server vm (build 20.65-b04-462, mixed mode)
but in system preferences \ java \ java control panel says your system has recommended version of java: java 7 update 51
and points /library/internet plug-ins/javaappletplugin.plugin/contents/home/bin/java
.
eclipse preferences show installed jre at: /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home
to point eclipse java 7 (1.7.0), it's enough change preference:
what source of discrepancy in java versions? instance of having different paths between command-line mac , windowed-mac?
edit
if edit /usr/local/adt-bundle-mac-x86_64/eclipse/eclipse.app/contents/macos/eclipse.ini
adding
-vm "/library/internet plug-ins/javaappletplugin.plugin/contents/home/bin/java"
eclipse refuses start.
and yet indeed 1.7:
> "/library/internet plug-ins/javaappletplugin.plugin/contents/home/bin/java" -version java version "1.7.0_51" java(tm) se runtime environment (build 1.7.0_51-b13) java hotspot(tm) 64-bit server vm (build 24.51-b03, mixed mode)
if want of jvm used run eclipse, need specify in eclipse.ini
file, according these instructions.
Comments
Post a Comment