ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "O'Hara, Patrick" <patrick.oh...@workscape.com>
Subject RE: java_home warning
Date Thu, 24 May 2001 21:59:00 GMT
What is the purpose of:

@setlocal&set a=@&set e=@&
%a%

why not use @echo off?

Pat O
pdohara@techneex.com



-----Original Message-----
From: Gerald E. Bennett [mailto:mraruba@austin.rr.com]
Sent: Thursday, May 24, 2001 4:37 PM
To: ant-user@jakarta.apache.org
Subject: RE: java_home warning


I am getting the same problem. What I did was to use the right CLASSPATH
that includes tools.jar

This is what I have in my bat file

@setlocal&set a=@&set e=@&
%a% REM --------------------------------------------
%a% REM PLEASE SET JAVA_HOME, ANT_HOME and CCDIR
%a% REM --------------------------------------------

%a% set JAVA_HOME=C:\java\jdk1.3
%a% set ANT_HOME=C:\java\jakarta-ant-1.3
%a% set CCDIR=C:\java\cruisecontrolv1.0
%a% set JUNIT_HOME=c:\java\junit3.6

%a% if "%JAVA_HOME%" == "" goto javahomeerror
%a% if exist %JAVA_HOME%\lib\tools.jar

%a% set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
%a% set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\dev.jar

%a% if "%ANT_HOME%" == "" goto anthomeerror
%a% set CLASSPATH=%CLASSPATH%;%ANT_HOME%\lib\ant.jar
%a% set CLASSPATH=%CLASSPATH%;%ANT_HOME%\lib\jakarta-ant-1.3 optional.jar
%a% set CLASSPATH=%CLASSPATH%;%ANT_HOME%\lib\jaxp.jar
%a% set CLASSPATH=%CLASSPATH%;%ANT_HOME%\lib\parser.jar
%a% set CLASSPATH=%CLASSPATH%;%ANT_HOME%\lib\

-----Original Message-----
From: Ramasubbu, Hari [mailto:Hari.Ramasubbu@ap.bdi.gte.com]
Sent: Thursday, May 24, 2001 4:21 PM
To: 'ant-user@jakarta.apache.org'
Subject: RE: java_home warning



thanks for the reply.i have set the env var as JAVA_HOME.but stil i have the
problem.
here is my set.txt

thanks :)
hari

**************
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=c:\jakarta-ant-1.3
APPDATA=C:\Documents and Settings\HRamasub\Application Data
CLASSPATH=C:\jdk1.3.1\lib\tools.jar;C:\jakarta-ant-1.3\lib
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=HRAMASUB
ComSpec=C:\WINNT\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\
JAVA_HOME=c:\jdk1.3.1
LOGONSERVER=\\EAPI001
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\jdk1.3.1\bin;C:\ja
karta-ant-1.3\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 1, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0801
ProgramFiles=C:\Program Files
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\DOCUME~1\HRamasub\LOCALS~1\Temp
TMP=C:\DOCUME~1\HRamasub\LOCALS~1\Temp
USERDOMAIN=EAPI
USERNAME=hramasub
USERPROFILE=C:\Documents and Settings\HRamasub
windir=C:\WINNT
*************

-----Original Message-----
From: Bill.J.Fellows@mail.sprint.com
[mailto:Bill.J.Fellows@mail.sprint.com]
Sent: Thursday, May 24, 2001 4:05 PM
To: ant-user@jakarta.apache.org
Subject: RE: java_home warning


is it java_home or JAVA_HOME.  It makes a difference as I recall.

set > set.txt
send that (inline - not as an attachment) if the preceeding does not
work.



-----Original Message-----
From: Hari.Ramasubbu [mailto:Hari.Ramasubbu@ap.bdi.gte.com]
Sent: Thursday, May 24, 2001 4:01 PM
To: ant-user
Subject: java_home warning



I have a question .I have set the java_home env variable in my win 2000
machine .but still i get this error on my command line .
-----------------------------------
   C:\>ant

Warning: JAVA_HOME environment variable is not set.
  If build fails because sun.* classes could not be found
  you will need to set the JAVA_HOME environment variable
  to the installation directory of java.

Build failed
-----------------------------------

any help is greatly appreciated.

thanks :)
hari


Mime
View raw message