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.

eclipse , jre

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

java control panel

and points /library/internet plug-ins/javaappletplugin.plugin/contents/home/bin/java.

systemprefs

eclipse preferences show installed jre at: /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home

eclipseprefs

to point eclipse java 7 (1.7.0), it's enough change preference:

new java version eclipse

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.

jre-or-jdk-must-be-available

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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -