I had been building/compiling my game without problems but suddenly I got the following error:
Error building Player: Win32Exception: ApplicationName=‘C:\Program Files (x86)\Java\jre1.8.0_45\bin\javac.exe’, CommandLine=‘-bootclasspath “D:/Users/JorgeMaldonado/AppData/Local/Android/android-sdk/platforms/android-20\android.jar” -d “D:\Unity3D Projects 4.5.2\TacoWorld\TacoWorld\Temp\StagingArea\bin\classes” -source 1.6 -target 1.6 -encoding UTF-8 “com\gatoware\tacoworld\R.java” “com\google\android\gms\R.java”’, CurrentDirectory=‘D:\Unity3D Projects 4.5.2\TacoWorld\TacoWorld\Temp\StagingArea\gen’
I see that Unity is looking for the Java compiler in "C:\Program Files (x86)\Java\jre1.8.0_45\bin" but after inspecting such location I found that it is not here. The Java compiler is located in "d:\Program Files (x86)\Java\jdk1.8.0_05\bin" which is part of my Windows 8 environment variables.
One strange thing is that I have a second game in the same PC and it builds correctly. Both games are part of the same Unity3D version.
What is wrong here? or How do I tell Unity to look for the Java compiler in another folder?