ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: Problems Compiling Using Ant
Date Tue, 30 May 2006 16:01:00 GMT
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 are using a different location for files on your new 
machine.  I usually try to have my build.xml compute locations relative 
to my build.xml - that way if I move my build environment around, I'm 
failry safe...

Just a thought :)

Travis West wrote:
> 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/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>    [mkdir] Created dir:
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>
> prepare:
>
> resources:
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes/Voters
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes/DAOs
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes/Classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes/Controllers
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes/Controllers
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes/Controllers
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes/Controllers
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>     [copy] Copying 1 file to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>
> compile:
>    [javac] Compiling 33 source files to
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/classes
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/Classes/Format.java:11: 
>
> cannot find symbol
>    [javac] symbol  : class Bibliography
>    [javac] location: class Format
>    [javac]     public StringBuffer formatMLA(Bibliography bib){
>    [javac]                                       ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAO.java:7: 
>
> cannot find symbol
>    [javac] symbol  : class Bibliography
>    [javac] location: interface DAOs.BibliographyDAO
>    [javac]     public void saveBibliography(Bibliography bib);
>    [javac]                                      ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAO.java:8: 
>
> cannot find symbol
>    [javac] symbol  : class Footnote
>    [javac] location: interface DAOs.BibliographyDAO
>    [javac]     public void saveFootnote(Footnote foot);
>    [javac]                                  ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAO.java:9: 
>
> cannot find symbol
>    [javac] symbol  : class Bibliography
>    [javac] location: interface DAOs.BibliographyDAO
>    [javac]     public Bibliography getBibliography(String isbn);
>    [javac]                ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAO.java:10:

>
> cannot find symbol
>    [javac] symbol  : class ListOfBooks
>    [javac] location: interface DAOs.BibliographyDAO
>    [javac]     public void saveListOfBooks(ListOfBooks list);
>    [javac]                                     ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAO.java:11:

>
> cannot find symbol
>    [javac] symbol  : class ListOfBooks
>    [javac] location: interface DAOs.BibliographyDAO
>    [javac]     public ListOfBooks getListOfBooks();
>    [javac]                ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAO.java:12:

>
> cannot find symbol
>    [javac] symbol  : class BookList
>    [javac] location: interface DAOs.BibliographyDAO
>    [javac]     public void saveBookList(BookList list);
>    [javac]                                  ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAO.java:13:

>
> cannot find symbol
>    [javac] symbol  : class MissedBooks
>    [javac] location: interface DAOs.BibliographyDAO
>    [javac]     public MissedBooks getMissedBook(String isbn);
>    [javac]                ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAO.java:14:

>
> cannot find symbol
>    [javac] symbol  : class MissedBooks
>    [javac] location: interface DAOs.BibliographyDAO
>    [javac]     public void saveMissedBook(MissedBooks mb);
>    [javac]                                    ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAO.java:16:

>
> cannot find symbol
>    [javac] symbol  : class ErrorBean
>    [javac] location: interface DAOs.BibliographyDAO
>    [javac]     public void saveErrorBean(ErrorBean eb);
>    [javac]                                   ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/UserDAO.java:7: 
>
> cannot find symbol
>    [javac] symbol  : class User
>    [javac] location: interface DAOs.UserDAO
>    [javac]     public void saveUser(User user);
>    [javac]                              ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/UserDAO.java:8: 
>
> cannot find symbol
>    [javac] symbol  : class User
>    [javac] location: interface DAOs.UserDAO
>    [javac]     public User getUser(String userName);
>    [javac]                ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImpl.java:17:

>
> cannot find symbol
>    [javac] symbol  : class Bibliography
>    [javac] location: class DAOs.BibliographyDAOImpl
>    [javac]     public void saveBibliography(Bibliography bib){
>    [javac]                                      ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImpl.java:44:

>
> cannot find symbol
>    [javac] symbol  : class Footnote
>    [javac] location: class DAOs.BibliographyDAOImpl
>    [javac]     public void saveFootnote(Footnote foot){
>    [javac]                                  ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImpl.java:61:

>
> cannot find symbol
>    [javac] symbol  : class Bibliography
>    [javac] location: class DAOs.BibliographyDAOImpl
>    [javac]     public Bibliography getBibliography(String isbn){
>    [javac]                ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImpl.java:71:

>
> cannot find symbol
>    [javac] symbol  : class ListOfBooks
>    [javac] location: class DAOs.BibliographyDAOImpl
>    [javac]     public void saveListOfBooks(ListOfBooks list){
>    [javac]                                     ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImpl.java:76:

>
> cannot find symbol
>    [javac] symbol  : class ListOfBooks
>    [javac] location: class DAOs.BibliographyDAOImpl
>    [javac]     public ListOfBooks getListOfBooks(){
>    [javac]                ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImpl.java:84:

>
> cannot find symbol
>    [javac] symbol  : class BookList
>    [javac] location: class DAOs.BibliographyDAOImpl
>    [javac]     public void saveBookList(BookList list){
>    [javac]                                  ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImpl.java:89:

>
> cannot find symbol
>    [javac] symbol  : class MissedBooks
>    [javac] location: class DAOs.BibliographyDAOImpl
>    [javac]     public MissedBooks getMissedBook(String isbn){
>    [javac]                ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImpl.java:111:

>
> cannot find symbol
>    [javac] symbol  : class MissedBooks
>    [javac] location: class DAOs.BibliographyDAOImpl
>    [javac]     public void saveMissedBook(MissedBooks mb){
>    [javac]                                    ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImpl.java:115:

>
> cannot find symbol
>    [javac] symbol  : class ErrorBean
>    [javac] location: class DAOs.BibliographyDAOImpl
>    [javac]     public void saveErrorBean(ErrorBean eb){
>    [javac]                                   ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImplJDBC.java:16:

>
> cannot find symbol
>    [javac] symbol  : class Bibliography
>    [javac] location: class DAOs.BibliographyDAOImplJDBC
>    [javac]     public void saveBibliography(Bibliography bib){
>    [javac]                                      ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/BibliographyDAOImplJDBC.java:30:

>
> cannot find symbol
>    [javac] symbol  : class Bibliography
>    [javac] location: class DAOs.BibliographyDAOImplJDBC
>    [javac]     public Bibliography getBibliography(String isbn){
>    [javac]                ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/UserDAOImpl.java:19: 
>
> cannot find symbol
>    [javac] symbol  : class User
>    [javac] location: class DAOs.UserDAOImpl
>    [javac]     public void saveUser(User user){
>    [javac]                              ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/DAOs/UserDAOImpl.java:36: 
>
> cannot find symbol
>    [javac] symbol  : class User
>    [javac] location: class DAOs.UserDAOImpl
>    [javac]     public User getUser(String userName){
>    [javac]                ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/Classes/Format.java:4: 
>
> duplicate class: Format
>    [javac] public class Format{
>    [javac]        ^
>    [javac]
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/Controllers/BookLookupController.java:139:

>
> cannot access Classes.Format
>    [javac] bad class file:
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/Classes/Format.java 
>
>    [javac] file does not contain class Classes.Format
>    [javac] Please remove or make sure it appears in the correct
> subdirectory of the classpath.
>    [javac]         Format form = new Format();
>    [javac]         ^
>    [javac] Note:
> /usr/local/tomcat/webapps/SpoonFedBib/ISBN/WEB-INF/src/Controllers/BookLookupController.java

>
> uses unchecked or unsafe operations.
>    [javac] Note: Recompile with -Xlint:unchecked for details.
>    [javac] 27 errors
>
>
> On 5/29/06, Antoine Levy-Lambert <antoine@gmx.de> wrote:
>>
>> 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 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
>> >> thought it was an ant problem, and here is my ant diagnostics
>> >> ------- Ant diagnostics report -------
>> >> Apache Ant version 1.6.5 compiled on March 6 2006
>> >>
>> >> -------------------------------------------
>> >>  Implementation Version (JDK1.2+ only)
>> >> -------------------------------------------
>> >> core tasks     : 1.6.5
>> >> optional tasks : 1.6.5
>> >>
>> >> -------------------------------------------
>> >>  ANT_HOME/lib jar listing
>> >> -------------------------------------------
>> >> ant.home: /usr/share/ant
>> >>
>> >> -------------------------------------------
>> >>  Tasks availability
>> >> -------------------------------------------
>> >> image : Not Available
>> >> wlrun : Not Available
>> >> icontract : Not Available
>> >> vajload : Not Available
>> >> rexec : Not Available
>> >> stlist : Not Available
>> >> telnet : Not Available
>> >> netrexxc : Not Available
>> >> ftp : Not Available
>> >> starteam : Not Available
>> >> stylebook : Not Available
>> >> stlabel : Not Available
>> >> splash : Not Available
>> >> stcheckin : Not Available
>> >> vajexport : Not Available
>> >> stcheckout : Not Available
>> >> ejbc : Not Available
>> >> vajimport : Not Available
>> >> wlstop : Not Available
>> >> sound : Not Available
>> >> ddcreator : Not Available
>> >>
>> >> -------------------------------------------
>> >>  org.apache.env.Which diagnostics
>> >> -------------------------------------------
>> >> Not available.
>> >> Download it at http://xml.apache.org/commons/
>> >>
>> >> -------------------------------------------
>> >>  XML Parser information
>> >> -------------------------------------------
>> >> XML Parser : org.apache.xerces.jaxp.SAXParserImpl
>> >> XML Parser Location: /usr/share/java/xerces-j2-2.7.1.jar
>> >>
>> >> -------------------------------------------
>> >>  System properties
>> >> -------------------------------------------
>> >> java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
>> >> sun.boot.library.path : /opt/jdk1.5.0_06/jre/lib/i386
>> >> java.vm.version : 1.5.0_06-b05
>> >> ant.library.dir : /usr/share/ant/lib
>> >> java.vm.vendor : Sun Microsystems Inc.
>> >> java.vendor.url : http://java.sun.com/
>> >> path.separator : :
>> >> java.vm.name : Java HotSpot(TM) Client VM
>> >> file.encoding.pkg : sun.io
>> >> user.country : US
>> >> sun.os.patch.level : unknown
>> >> java.vm.specification.name : Java Virtual Machine Specification
>> >> user.dir : /usr/local/tomcat/webapps/ISBNLive/WEB-INF/src
>> >> java.runtime.version : 1.5.0_06-b05
>> >> java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
>> >> java.endorsed.dirs : /opt/jdk1.5.0_06/jre/lib/endorsed
>> >> os.arch : i386
>> >> java.io.tmpdir : /tmp
>> >> line.separator :
>> >>
>> >> java.vm.specification.vendor : Sun Microsystems Inc.
>> >> os.name : Linux
>> >> ant.home : /usr/share/ant
>> >> sun.jnu.encoding : ANSI_X3.4-1968
>> >> java.library.path :
>> >>
>> /opt/jdk1.5.0_06/jre/lib/i386/client:/opt/jdk1.5.0_06/jre/lib/i386:/opt/jdk1.5.0_06/jre/../lib/i386

>>
>> >>
>> >> java.specification.name : Java Platform API Specification
>> >> java.class.version : 49.0
>> >> sun.management.compiler : HotSpot Client Compiler
>> >> os.version : 2.6.15-1.2054_FC5
>> >> user.home : /home/travis
>> >> user.timezone :
>> >> java.awt.printerjob : sun.print.PSPrinterJob
>> >> file.encoding : ANSI_X3.4-1968
>> >> java.specification.version : 1.5
>> >> user.name : travis
>> >> java.class.path : /usr/share/java/ant.jar:/usr/share/java/ant-
>> >>
>> launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/antlr.jar:/usr/share/java/ant/ant-antlr.jar:/usr/share/java/bcel.jar:/usr/share/java/ant/ant-apache-bcel.jar:/usr/share/java/bsf.jar:/usr/share/java/ant/ant-apache-bsf.jar:/usr/share/java/log4j.jar:/usr/share/java/ant/ant-apache-log4j.jar:/usr/share/java/oro.jar:/usr/share/java/ant/ant-apache-oro.jar:/usr/share/java/regexp.jar:/usr/share/java/ant/ant-apache-regexp.jar:/usr/share/java/xml-commons-resolver.jar:/usr/share/java/ant/ant-apache-resolver.jar:/usr/share/java/jakarta-commons-logging.jar:/usr/share/java/ant/ant-commons-logging.jar:/usr/share/java/javamail/mailapi-1.3.1.jar:/usr/share/java/javamail/providers-1.3.1.jar:/usr/share/java/jaf.jar:/usr/share/java/ant/ant-javamail.jar:/usr/share/java/jdepend.jar:/usr/share/java/ant/ant-jdepend.jar:/usr/share/java/jsch.jar:/usr/share/java/ant/ant-jsch.jar:/usr/share/java/junit.jar:/usr/share/java/ant/ant-junit.jar:/usr/share/java/ant/ant-nodeps.jar:/usr/share/java/ant/ant-swing.jar:/usr/share/java/jaxp_transform_impl.jar:/usr/share/java/ant/ant-trax.jar:/opt/jdk1.5.0_06/lib/tools.jar::/opt/jdk1.5.0_06/lib/tools.jar:/opt/jdk1.5.0_06/jre/lib/rt.jar:/opt/jdk1.5.0_06/lib/tools.jar:/opt/jdk1.5.0_06/jre/lib/rt.jar

>>
>> >>
>> >> java.vm.specification.version : 1.0
>> >> sun.arch.data.model : 32
>> >> java.home : /opt/jdk1.5.0_06/jre
>> >> java.specification.vendor : Sun Microsystems Inc.
>> >> user.language : en
>> >> java.vm.info : mixed mode, sharing
>> >> java.version : 1.5.0_06
>> >> java.ext.dirs : /opt/jdk1.5.0_06/jre/lib/ext
>> >> sun.boot.class.path :
>> >>
>> /opt/jdk1.5.0_06/jre/lib/rt.jar:/opt/jdk1.5.0_06/jre/lib/i18n.jar:/opt/jdk1.5.0_06/jre/lib/sunrsasign.jar:/opt/jdk1.5.0_06/jre/lib/jsse.jar:/opt/jdk1.5.0_06/jre/lib/jce.jar:/opt/jdk1.5.0_06/jre/lib/charsets.jar:/opt/jdk1.5.0_06/jre/classes

>>
>> >>
>> >>
>> >> java.vendor : Sun Microsystems Inc.
>> >> file.separator : /
>> >> java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
>> >> sun.cpu.endian : little
>> >> sun.io.unicode.encoding : UnicodeLittle
>> >> sun.cpu.isalist :
>> >>
>> >> However, I did not see anything obviously wrong there. Seeing how 
>> this
>> >> problem appeared after I had upgraded from Java 1.4 to 1.5, could
>> >> there be
>> >> a problem there?
>> >> Thanks,
>> >> Travis West
>> >>
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message