On 08/06/06, Mary M <[EMAIL PROTECTED]> wrote:
Dear All,
When I ran the ant command, I got the error below -
--
compile:
[javac] compling 1 source file to ...\WEB-INF\classes
Dear All,
When I ran the ant command, I got the error below -
--
compile:
[javac] compling 1 source file to ...\WEB-INF\classes
[javac] MyBean.java:5: cannot access java.lang.O
The Bibliography class is just a normal bean inside of the Classes package,
which is where I put all of my beans for this project. I can compile it
just fine using javac at the command line, but the ant build, which should
just be using javac, fails. I've tried just commenting out the ${classpath
Travis:
The only potential oddity I see is your compile.classpath has a
${classpath} pathelement that isn't defined in your build.xml. Which
may be nothing...and not important.
What about this Bibliography class...does this exist in your src dir or
is it in a jar? If its in a jar...you cou
I thought it might be something like a jar is unavailble, and there were two
that were not. However, even when I added those jars, the same error still
resulted. The bibliography class is just a simple java bean that does not
import any classes outside of log4j. I'm copying over my build.xml just
Something else to check...make sure your src and/or classpath are not
hard coded in such a away that on your new computer your source and/or
classes are in a different directory - so that your build now fails.
For instance, look in your build.xml and see if you hard coded those
locations but a
Is it possible some of your compilation errors are due to a jar or
something no longer available in your classpath? For instance your
Bibliography compile error...is that class found on your new computer?
If so, is the location the same as on your old computer?
Travis West wrote:
When I run
When I run ant project, this is the result. Although there are errors
compiling, this project previously compiled on my old computer. There have
been no changes in the source, so the problem is probably not there.
Buildfile: build.xml
clean:
[delete] Deleting directory
/usr/local/tomcat/webapp
Hello Travis,
the output of ant -diagnostics might be interesting, but it would be
cool if you would also post the error message that you get with ant 1.6.5.
Regards,
Antoine
Travis West wrote:
> Recently, I moved computers, and in the process I upgraded ant from
> 1.6.2 to
>> 1.6.5. I copied a
Recently, I moved computers, and in the process I upgraded ant from 1.6.2 to
1.6.5. I copied a program over from my old computer onto my new computer,
which also upgraded from Java 1.4 to 1.5. When I tried using ant to
compile my project, it failed where it had previously compiled. I originally
t
10 matches
Mail list logo