ALo Leonardo,

De fato: 

"problem with quotes in ant 1.5.1"
http://www.mail-archive.com/[EMAIL PROTECTED]/msg22221.html


Julio Cesar


-----Mensagem original-----
De: Leonardo Holanda [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 28 de fevereiro de 2003 15:09
Para: Ant Users List
Cc: [EMAIL PROTECTED]
Assunto: [cejug-discussao] ant 1.5.1 problem on ant.bat

I was using an 1.5 successfully. When I updated to ant 1.5.1 it was
returning the error:

Exception in thread "main" java.lang.NoClassDefFoundError: de

This error is caused by the weird form that windows use to store long
names
and entries with blank spaces in its filesystem. So, if you have any
reference to "Program Files" in your path enviroment variables, it will
cause this error.
This error can be fixed by two diferent solutions:

Solution 1. Edit the file ant.bat (the best one in my opinion).
locate the line which contains:

if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat"
"%JAVA_HOME%\lib\tools.jar"

and remove the double quotes in the last parameter. The line shoud
looklike
this:

if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat"
%JAVA_HOME%\lib\tools.jar

Solution 2. Check your path enviroment variable. It cannot contain any
blank
space (like "Programa Files"). Use the ugly windows abreviated form
instead
(e.g. "progra~1") inherited since the pure DOS old times. Check also for
references in this environment variables.

I'm posting this error because I did't find it in the ant FAQ, problems
or
in the [EMAIL PROTECTED] mail archives.


Best regards,
Leonardo Holanda.



------------------------------------------------------------------------
-------------------

Ceara' Java User Group



  Para cancelar sua assinatura, envie um e-mail para:
[EMAIL PROTECTED]

  Para mais informacoes, mande um e-mail para: [EMAIL PROTECTED]

  Falar com o administrador? e-mail para: [EMAIL PROTECTED] 

 





-------------------------------------------------------------------------------------------
Ceara' Java User Group

  Para cancelar sua assinatura, envie um e-mail para: [EMAIL PROTECTED]
  Para mais informacoes, mande um e-mail para: [EMAIL PROTECTED]
  Falar com o administrador? e-mail para: [EMAIL PROTECTED] 
 

Responder a