Hi,

Thanks for the assistance.

With regard to "2)resolving classepath issues"  I guess I am still a bit
unsure of what you mean.  But here is what I did.

1) I left the basedir as "c:\"
2) I changed src1 to location="PCCSOU~1\CAN\"


I hope what I have changed is what you were referring to.

I ran the buildfile again, and  I am no longer receiving any package not
found or unresolved symbol errors.  So I believe I am compiling from the
correct base folder now.

  
I guess I have now uncovered some new errors.  Specifically:
 "The system is out of resources.  Consult the following stack trace for
details."
and 

"java.lang.OutOfMemoryError <<no stack trace available>>"

How do I view the stack trace?  And what might be causing the "out of
resources" error"?

thanks







-----Original Message-----
From: Laconia Data Systems [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 06, 2004 9:30 AM
To: Ant Users List
Subject: Re: Classpath Issue - Not sure why it isn't being picked up

1) compiling
go to C:\
dir /X
note the short name of the folder for folder 'PCC Source'
(e.g. on my box C:\Program Files shortened name is C:\PROGRA~1)
substitute all occurrences of 'PCC Source' with the folders shortened
name

2)resolving classepath issues
the default class resolution is CLASSPATH/package name so for example if
I
have the classpath specified as
CLASSPATH=.;${CLASSPATH}
(classpath is set to current folder first..with the remainder of
CLASSPATH
following)
AND my base folder (where I am compiling ) is ${basedir}\PCC Source\CAN
then the *.classes within package esolutions.util located at
${basedir}\PCC
Source\CAN\esolutions\util
will be found
Makes sense???
Martin-
----- Original Message -----
From: "Grand Cheng" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 06, 2004 9:08 AM
Subject: RE: Classpath Issue - Not sure why it isn't being picked up


Hi Everyone,

I appreciate the help.

Unfortunately I still can't seem to get the compile going.  Martin, you
mentioned that it would be helpful if I provided the package names, so
here is the build file itself, and the problems I am encountering.
Maybe I am compiling from the wrong base folder?

**************Build.xml***********************

<?xml version="1.0"?>

<project name="PCC Build File" default="Compile" basedir="c:\" >

 <property name="stuff" location="esolutions" />
 <property name="src1" location="PCC Source\CAN\esolutions\common" />
 <property name="dest_compiled" location="esolutions_compiled" />


 <path id="pcc.path">
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\adt" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\ap" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\applet" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\ar" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\base" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\care" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\chart" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\CHART DOC"
/>
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\client" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\comm" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\common" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\contact" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\dbmerge" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\cl" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\glap" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\help" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\html" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\internal"
/>
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\quality" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\sec" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\servlet" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\staff" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\trust" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\util" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\util\care"
/>
 <pathelement location="${basedir}\PCC
Source\CAN\esolutions\util\quality" />
 <pathelement location="${basedir}\PCC
Source\CAN\esolutions\util\remote" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\util\trust"
/>
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\work" />
 <pathelement location="${basedir}\PCC Source\CAN\esolutions\www" />
 </path>




 <target name="Compile">
  <javac srcdir="${src1}" />
  <classpath refid="${pcc.path}" />
  </target>

   </project>

****************************End of Build
File*****************************

****************************Errors*************************************

C:\Ant\bin>ant -f build2.xml
Buildfile: build2.xml

Compile:
    [javac] Compiling 12 source files
    [javac] C:\PCC Source\CAN\esolutions\common\WeCommonCode.java:14:
package esolutions.util does not exist
    [javac] import esolutions.util.*;
    [javac] ^
    [javac] C:\PCC Source\CAN\esolutions\common\WeCommonCode.java:15:
package esolutions.base does not exist
    [javac] import esolutions.base.*;
    [javac] ^
    [javac] C:\PCC Source\CAN\esolutions\common\WeCommonCode.java:16:
package esolutions does not exist
    [javac] import esolutions.*;
    [javac] ^
    [javac] C:\PCC Source\CAN\esolutions\common\WeCommonCode.java:18:
cannot res
olve symbol

****************************End of Errors*******************************

Thanks to all that have helped.


-----Original Message-----
From: Laconia Data Systems [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 06, 2004 7:31 AM
To: Ant Users List
Subject: Re: Classpath Issue - Not sure why it isn't being picked up

Grand:
Keep in mind that if your base folder is named 'base' and
your package name is named 'foo' then you need to compile the source
from
folder 'base' which referennces package (folder) foo
Since your email did not provide package names I do not know what the
specific names would be
Martin
----- Original Message -----
From: "Grand Cheng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 05, 2004 4:22 PM
Subject: Classpath Issue - Not sure why it isn't being picked up


Hi,



I am a newbie to Ant so I appreciate any help you can lend me.



I am trying to compile a fairly large project, which has multiple
packages, and has referencing between them.  So when I first created the
build file and ran it, I received a slew of "package not found" , and
"cannot resolve symbol"



I then added the following to my build file.



<path id="mypath.path">

<pathelement path ="${basedir}\source\a" />

<pathelement path ="${basedir}\source\b" />

<pathelement path ="${basedir}\source\c" />

</path>



I have basically added a pathelement for every folder within my
project...just to make sure I haven't missed anything.



I have a target



<target name="CompileMyStuff">

<javac srcdir="${basedir}\source\a" />

<classpath refid="${mypath.path}" />

</target>



However, when I run this, I still receive the same "package not found" ,
and "cannot resolve symbol"





I am using Ant v. 1.6.2 and JDK 1.3.1_04



Thanks for your help







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to