1 Reply Latest reply: Nov 4, 2012 3:45 PM by 972409 RSS

    JDK home path error

    972349
      Whenever I try to build my project, I am asked to set up a new profile and enter the home path for the home directory and the JavaDoc directory. After accepting the default for both, the dialog box closes and when I try to re-build the same thing happens. If I select continue and opt not to set up the profile I get this error :

      " Failed to start the following executable, "C:\Program Files\Java\jre6\bin\javac.exe" -g -classpath G:\ComputerProject2012-1013 -d G:\ComputerProject2012-1013 G:\ComputerProject2012-1013\HangmanTheGame.java
      For help, please refer to http://www.jcreator.com/installation.htm

      Process completed."
        • 1. Re: JDK home path error
          972409
          Try adding JAVA_HOME to your system variables on webpage and next time don't need to setup anything. Maybe this will solve your problem. If it doesn't post what it outputs.

          And the second I would be very unconfortable with
          969346 wrote:
          " Failed to start the following executable, "C:\Program Files\Java\jre6\bin\javac.exe" -g -classpath G:\ComputerProject2012-1013 -d G:\ComputerProject2012-1013 G:\ComputerProject2012-1013\HangmanTheGame.java
          naming your project with the hyphen {-} . Maybe
          static void main(String[] args)
          parses it wrongly. Try renaming your project to something else without hyphen.

          Edited by: 969406 on Nov 4, 2012 1:44 PM