java - Mac OS Mavericks. JDK installer can't see JAVA_HOME -
yesterday bought new mac , trying configure on them jdk 7.
apple jdk 6 package installed on path:
/library/java/javavirtualmachines/1.6.0.jdk/contents/home
/usr/libexec/java_home
, echo $java_home
print this
/system/library/java/javavirtualmachines/1.6.0.jdk/contents/home
in ˜/.bash_profile have export java_home=$(/usr/libexec/java)
.
also have installed jre7
. java -version
print this:
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)
but! i'm trying launch jdk7 , have error:
sudo sh downloads/java_ee_sdk-7-jdk7-macosx-x64.sh password: extracting installer archive... extracting installer runtime... unable find $java_home @ "/usr", continuing system-provided java... extracting installer resources... unable find $java_home @ "/usr", continuing system-provided java... extracting installer metadata... unable find $java_home @ "/usr", continuing system-provided java... welcome glassfish installer using user defined java_home : /usr entering setup...
this important, because if start installing jdk not locate in /system/library/java/javavirtualmachines/
directory.
i ran this, too. seems trying install java ee 7 development kit bundles jdk java ee 7 sdk downloads doesn't work. shell script installer appears depend on things aren't in "plugin" jre.
instead, try installing java development kit first , running unbundled ee sdk follows:
java se development kit 7 downloads - download , install mac os x x64 java se development kit
java platform, enterprise edition 7 sdk - download , run unix / linux / mac os x version.
Comments
Post a Comment