Reputation: 2354
I try to programing in visual studio for android. I install SDK , JDK ,Xamarin .Now I want set path of jdk to the visual studio but vs get message that :
Cannot find Java Development Kit files in specified path:
C:\Program Files\Java\jre1.6.0_07\bin
I set this path for Path
and Home_java
variable on the Enviroment Variable in SystemAdvanceSetting.
I use where javac
in cmd but it can not find java path.
How to fix this?
Upvotes: 1
Views: 5243
Reputation: 3888
Xamarin 4.1.2.18 and earlier doesn't currently support a 64-bit JDK. You should install a 32-bit version of JDK 1.7u79, which Xamarin will be able to detect. You can see which JDK Xamarin is using by clicking the Visual Studio menu Tools > Xamarin. You will see the listed JDK and Android SDK directories.
Xamarin.Android 4.1.2.18 and earlier also requires that a 32-bit Java JDK 7 (1.7) be installed. Later versions of the JDK can also be installed alongside JDK 7, if required by your machine.
You can use a 64-bit JDK 8 installation with the newer Xamarin 4.2 and later.
Upvotes: 3
Reputation: 2424
Your JDK path must point to C:\Program Files\Java\jre1.6.0_07
, not to the bin
directory.
Update your JAVA_HOME environment variable and try again.
Upvotes: 1