Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Error building Player: Win32Exception: ApplicationName='C:\Program Files (x86)\Java\jre7\bin\javac.e

Discussion in 'Scripting' started by Nvikelo, Oct 18, 2014.

  1. Nvikelo

    Nvikelo

    Joined:
    May 28, 2014
    Posts:
    11
    help i'm trying to save my game for eclipse
    android game

    Error building Player: Win32Exception: ApplicationName='C:\Program Files (x86)\Java\jre7\bin\javac.exe', CommandLine='-bootclasspath "C:/Users/[user]/Desktop/unity/android/adt-bundle-windows-x86_64-20140702/sdk/platforms/android-20\android.jar" -d "C:\Users\nvikelo\Documents\New Unity Project 1\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\google\android\gms\R.java" "com\triarchy\[user]\R.java"', CurrentDirectory='C:\Users\nvikelo\Documents\New Unity Project 1\Temp\StagingArea\gen'
     
    Last edited: Aug 31, 2022
  2. Marzoa

    Marzoa

    Joined:
    Dec 2, 2012
    Posts:
    50
    Same problem here under Windows 8.1, Did you manage to solve it?
     
  3. Marzoa

    Marzoa

    Joined:
    Dec 2, 2012
    Posts:
    50
    Never mind. I managed to solve it by setting that JAVA_HOME environment variable.
     
  4. Nvikelo

    Nvikelo

    Joined:
    May 28, 2014
    Posts:
    11
    no i haven't
    and im using windows 8
     
  5. Nvikelo

    Nvikelo

    Joined:
    May 28, 2014
    Posts:
    11
    Error building Player: CommandInvokationFailure: Failed to recompile android resource files. See the Console for details.
    C:\Program Files (x86)\Java\jre7\bin\javac.exe -bootclasspath "C:/Users/nvikelo/Desktop/unity/android/adt-bundle-windows-x86_64-20140702/sdk/platforms/android-20\android.jar" -d "C:\Users\nvikelo\Documents\New Unity Project 1\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\google\android\gms\R.java" "com\triarchy\nvikelo\R.java"

    stderr[
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    Unrecognized option: -bootclasspath
    ]
    stdout[

    ]
     
  6. pauL___

    pauL___

    Joined:
    Nov 28, 2013
    Posts:
    14
    Hi, did you already work this thing?? i also have the same error.. Please kindly tell me how to fix this.. thanks in advance! :)
     
  7. jtgia

    jtgia

    Joined:
    Dec 24, 2014
    Posts:
    1
    The suggestion above to set JAVA_HOME system variable worked for me.

    Goto Environment Variables > new System Variable > set JAVA_HOME to C:\Program Files\Java\jre*
    It may be Program Files (x86) depending on your Java installation.