The specified execution location for the task "C: \ Program Files (x86) \ Java \ jdk1.7.0_71 \\ bin \ javac.exe" is invalid

Ok im wondering where xamarin gets this way from?

Severity code Description Suppression state of project line file source Error. The specified execution location for the task "C:\Program Files (x86)\Java\jdk1.7.0_71\\bin\javac.exe" invalid.

So I can go and change it to the new jdk1.8. I have a new JDK installed, I just need to know where to change the path.

+7
java c # visual-studio xamarin
source share
5 answers

I had the same problem and solution.

  • Remove all jdk and install jdk 1.8
  • Change java reference location in Visual Studio Tool> Options> Xamarin
  • Clean and rebuild project
+7
source share

I just solved this very problem for me. I do not know why you will not have the JDK_HOME variable. Remove JDK completely and install it again, maybe? Environment Variables for java were installed on my previously installed path. I assume that Oracle is screwed here.

Since I had the same error, here is what I did:

I went to C:\Program Files\Java\ and checked how the jdk folder is called. For me, this is jdk1.8.0_102 .

For users who do not know where to find System Variables : Go to System Properties and click Advanced System Settings on the left. Go to the Advanced tab, click Environment Variables . In the System Variables section of the list, there must be two variables JAVA_HOME and JDK_HOME .

I edited these values ​​and changed the path to what I found in the java folder. In my case, it will be C:\Program Files\Java\jdk1.8.0_102 .

No need to close VS, just create an application and it should go through an annoying error.

Hope this helps :)

+1
source share

I had exactly the same problem. I got it to leave (this is not the same as fixing it).

  • Disable every JAVA bit that you have. Delete both JAVA folders (program files and program files (x86)).
  • Install the latest Java SDK (x32).
  • Clean and rebuild your projects.
  • Since my solution is multi-platform, I changed the startup project to .iOS, built it, launched it in the emulator and returned the startup project to the .Droid project.

Somewhere in all this, the problem disappeared. And remember the children! If he can disappear on his own, he can return again on his own!

0
source share

I had this problem too, I downloaded 32-bit Java, but VS was still looking for a 64-bit version.

To solve all I needed to do was change the JAVA_HOME and the variable in my Path, clear my project and rebuild it.

0
source share

Just set the environment variables JAVA_HOME and JDK_HOME, clear your solution and re-create. Everything is fine for me. Remember to clear your decision.

0
source share

All Articles