java - Why should JAVA_HOME environment variable value point to SDK directory instead of bin? -


generally inorder run java applications set java_home value java sdk directory/bin

but when set , try opening android studio gives error saying jvm not configured in machine , doesn't open up.

if reconfigure java_home java sdk directory path works fine. wonder why happening??

if reconfigured sdk path other java application don't work. please let me know thoughts on this.

update: please find image below when java_home var conifgured right jdk dir, javac doesn't execute in command prompt

enter image description here

thanks, nav.

generally inorder run java applications set java_home value java sdk directory/bin

no. traditionally, java_home set jre or sdk main directory. bin/ subdirectory might in path, though.

i have changed values, androidstudio works fine when enter javac in command prompt gives me error not recoginzed

that because path wrong. path needs point bin/ directory within java sdk. guess path referencing java_home, assuming (incorrectly) java_home points bin/ directory. change path ensure picks bin/ directory.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -