Hi Cesar,

try to install Java in some other folder - without whitespaces. You
will avoid many problems this way. In general don't use whitespaces in
folder names, even if Windows encourages you to do that.

--
best regards
Tomek Kaczanowski
http://kaczanowscy.pl/tomek

2009/7/29 César <[email protected]>:
>
> Hi All,
>
> This is the first time I use Gradle and I've had some problems trying to
> execute it %-|.
>
> Finally, it seems that gradle.bat has some problems with double quotations
> marks (which are automatically added by command line when using TAB for
> autocomplete).
>
> Note: "No se esperaba de en este momento." is the message error from my
> Spanish Windows XP command line.
>
>      C:\LAB\tools\gradle-0.7\bin>
>      C:\LAB\tools\gradle-0.7\bin>set JAVA_HOME="C:\Archivos de
> programa\Java\jdk1.6.0_14"
>      C:\LAB\tools\gradle-0.7\bin>gradle -v
>      No se esperaba de en este momento.
>
> I thought that it could be a problem with space characters so I changed the
> path to its short form.
> But this time two different errors were displayed.
>
>      C:\LAB\tools\gradle-0.7\bin>set
> JAVA_HOME="C:\Archiv~1\Java\jdk1.6.0_14"
>      C:\LAB\tools\gradle-0.7\bin>gradle -v
>      Acceso denegado: C:\ARCHIV~1\JAVA\JDK1.6.0_14
>
>      ERROR: JAVA_HOME is set to an invalid directory:
> "C:\Archiv~1\Java\jdk1.6.0_14"
>
>      Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation.
>
> After removing the double quotations marks everything works fine :jumping:.
>
>      C:\LAB\tools\gradle-0.7\bin>set JAVA_HOME=C:\Archivos de
> programa\Java\jdk1.6.0_14
>      C:\LAB\tools\gradle-0.7\bin>gradle -v
>
>      ------------------------------------------------------------
>      Gradle 0.7
>      ------------------------------------------------------------
>
>      Gradle buildtime: Monday, July 20, 2009 8:50:13 AM CEST
>      Groovy: 1.6.3
>      Ant: Apache Ant version 1.7.0 compiled on December 13 2006
>      Ivy: 2.1.0-rc2
>      Java: 1.6.0_14
>      JVM: 14.0-b16
>      JVM Vendor: Sun Microsystems Inc.
>      OS Name: Windows XP
>
>      C:\LAB\tools\gradle-0.7\bin>set JAVA_HOME=C:\Archiv~1\Java\jdk1.6.0_14
>      C:\LAB\tools\gradle-0.7\bin>gradle -v
>
>      ------------------------------------------------------------
>      Gradle 0.7
>      ------------------------------------------------------------
>
>      Gradle buildtime: Monday, July 20, 2009 8:50:13 AM CEST
>      Groovy: 1.6.3
>      Ant: Apache Ant version 1.7.0 compiled on December 13 2006
>      Ivy: 2.1.0-rc2
>      Java: 1.6.0_14
>      JVM: 14.0-b16
>      JVM Vendor: Sun Microsystems Inc.
>      OS Name: Windows XP
>
>      C:\LAB\tools\gradle-0.7\bin>
>
> I would like to include a patch; but I'm a bit rusty with Windows shell
> scripting :-((.
> --
> View this message in context: 
> http://www.nabble.com/Gradle-0.7%3A-Problem-with-gradle.bat-and-double-quotations-marks-on-JAVA_HOME.-tp24708932p24708932.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to