This is what happened

1)using ant

    [javac] Compiling 1 source file to
D:\petstore\components\customer\src\iasmtbuild\temp
    [javac] Using modern compiler
    [javac] Compilation args: -d
D:\petstore\components\customer\src\iasmtbuild\temp -classpath
C:\work\iasmt\lib\ext\ant.jar;C:\work\iasmt\lib\ext\crimson.jar;C:\jdk\lib\t
ools.jar;D:\petstore\components\customer\src;D:\petStore\components\util\tra
cer\src;D:\j2ee\lib\j2ee.jar -sourcepath D:\petstore\components\customer\src
-g:none

    [javac] File to be compiled:
 
D:\petstore\components\customer\src\com\sun\j2ee\blueprints\customer\account
\ejb\AccountEJB.java
    [javac]
D:\petstore\components\customer\src\com\sun\j2ee\blueprints\customer\account
\ejb\Account
EJB.java:34: cannot resolve symbol
    [javac] symbol  : class Debug
    [javac] location: package tracer
    [javac] import com.sun.j2ee.blueprints.util.tracer.Debug;
    [javac]                                            ^
    [javac]
D:\petstore\components\customer\src\com\sun\j2ee\blueprints\customer\account
\dao\Account
DAOFactory.java:15: cannot resolve symbol
    [javac] symbol  : class Debug
    [javac] location: package tracer
    [javac] import com.sun.j2ee.blueprints.util.tracer.Debug;
    [javac]                                            ^
    [javac] 2 errors


BUILD FAILED

d:\petstore\components\customer\src\build_jar.xml:22: Compile failed,
messages should have been provided.
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:559)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 9 seconds

**********
normal compilation

D:\petStore\components\customer\src>javac
com\sun\j2ee\blueprints\customer\account\ejb\AccountEJB.java

D:\petStore\components\customer\src>

The Debug.java file is lying inside my
D:\petStore\components\util\tracer\src directory



-----Original Message-----
From: Jon Skeet [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 1:22 PM
To: Ant Users List
Subject: RE: is this a bug in ANT 1.4.1


> my classpath contains a directory in which a java file is 
> lying according to
> its package structure.(say "com.abc ")
> 
> i'm trying to compile another file which imports this file
> through ant but ant gives me a compilation error .. on the 
> imported file...
> saying cannot resolve symbol
> 
> i tried to compile it directly using javac and it gets 
> compiled fine...
> 
> whatz going on here ???????

It would help greatly if you'd show exactly how you're trying to compile.
Without seeing your task, any number of things could be wrong.

Jon

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

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

Reply via email to