Java updated to Java 8 but not able to locate folder in /System/Library/Java/JavaVirtualMachines folder on mac and not able to update java in android -


i updated java 6 java 8 , successful. checked using command:- java -version

which returning me:-

java version "1.8.0_141" java(tm) se runtime environment (build 1.8.0_141-b15) java hotspot(tm) 64-bit server vm (build 25.141-b15, mixed mode)

this command saying java 8 installed , path have asked in question:- /usr/libexec/java_home returning:- /library/java/javavirtualmachines/jdk1.8.0_141.jdk/contents/home

i updated java_home variable , getting $java_home as:- -bash: /library/java/javavirtualmachines/jdk1.8.0_141.jdk/contents/home: directory

but not able locate "jdk1.8.0_141.jdk" folder in "javavirtualmachines".

please me. building android app needs java 8 , android studio not able take java 8 because not able locate folder "jdk1.8.0_141.jdk"

note : have downloaded java 8 jdk oracle.

please find attached screenshots more clarifications system preferences showing java updated java 8

terminal screenshot showing there no folder jdk java 8

i need use java 8 in 1 of android app. although updated java 8 successfully(please see screenshot) in android studio. still getting error "error:gradle 3.3 requires java 7 or later run. using java 6." , "numberformatexception: invalid revision: 24.0.0-alpha1: invalid revision: 24.0.0-alpha1"

and contents of app level gradle file are:-

numberformatexception: invalid revision: 24.0.0-alpha1: invalid revision: 24.0.0-alpha1

the /system/library/java/javavirtualmachines folder used old apple java 1.6

the oracle java 8 installs in /library/java/javavirtualmachines folder. must specify location wants know java located.


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -

ios - MKAnnotationView layer is not of expected type: MKLayer -