ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis West" <trav.w...@gmail.com>
Subject Re: Problems Compiling Using Ant
Date Tue, 30 May 2006 19:02:50 GMT
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}
element to see if that had an effect, but the same error resulted.


On 5/30/06, Scot P. Floess <floess@mindspring.com> wrote:
>
> 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 could use the <available> task to
> see if you can find it via your compile.classpath ref id...
>
> There does "feel" like a sourcepath/classpath issue...I just don't
> immediately see it...
>
> Scot
>
> Travis West wrote:
> > 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 to
> > see if anyone can see a possible error in it:
> >
> > <project name="webapplication3" basedir="../" default="project">
> >
> > <!-- Project settings -->
> > <property name="project.title" value="WebApplication3 Application"/>
> > <property name="project.version" value="1.0"/>
> >
> > <!-- Path settings -->
> > <property name="doc.src" value="./src/"/>
> >
> > <!-- classpath for Struts 1.1 -->
> > <path id="compile.classpath">
> >      <pathelement path="lib/antlr.jar"/>
> >      <pathelement path="lib/nekohtml.jar"/>
> >      <pathelement path="lib/cglib-ful-2.0.2.jar"/>
> >      <pathelement path="lib/spring.jar"/>
> >      <pathelement path="lib/acegi-security-catalina-1.0.0-RC1.jar"/>
> >      <pathelement path="lib/acegi-security-1.0.0-RC1.jar"/>
> >      <pathelement path="lib/spring-core.jar"/>
> >      <pathelement path="lib/spring-hibernate.jar"/>
> >      <pathelement path="lib/joda-time-1.2.jar"/>
> >      <pathelement path="lib/commons-collections.jar"/>
> >      <pathelement path="/usr/local/tomcat/common/lib/servlet-api.jar"/>
> >      <pathelement path="lib/commons-beanutils.jar"/>
> >      <pathelement path="lib/commons-fileupload.jar"/>
> >      <pathelement path="lib/commons-logging.jar"/>
> >      <pathelement path="lib/commons-validator.jar"/>
> >      <pathelement path="lib/dom4j-1.4.jar"/>
> >      <pathelement path="lib/ehcache-0.9.jar"/>
> >      <pathelement path="lib/freemarker.jar"/>
> >      <pathelement path="lib/httpunit.jar"/>
> >      <pathelement path="lib/hibernate.jar"/>
> >      <pathelement path="lib/jakarta-oro.jar"/>
> >      <pathelement path="lib/jdbc2_0-stdext.jar"/>
> >      <pathelement path="lib/jstl.jar"/>
> >      <pathelement path="lib/standard.jar"/>
> >      <pathelement path="lib/jgroups-2.2.7.jar"/>
> >      <pathelement path="lib/jta.jar"/>
> >      <pathelement path="lib/lucene-1.4.3.jar"/>
> >      <pathelement path="lib/log4j-1.2.9.jar"/>
> >      <pathelement path="lib/ostermillerutils_1_04_03_for_java_1_4.jar"/>
> >      <pathelement path="lib/postgresql-8.1-405.jdbc2.jar"/>
> >      <pathelement path="lib/struts-legacy.jar"/>
> >      <pathelement path="lib/commons-digester.jar"/>
> >      <pathelement path="lib/struts.jar"/>
> >      <pathelement path="lib/commons-lang.jar"/>
> >      <pathelement path="classes"/>
> >      <pathelement path="${classpath}"/>
> > </path>
> >
> > <!-- Check timestamp on files -->
> > <target name="prepare">
> >     <tstamp/>
> > </target>
> >
> > <!-- Copy any resource or configuration files -->
> > <target name="resources">
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/">
> >            <include name="log4j.properties"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes/Voters" includeEmptyDirs="no">
> >        <fileset dir="src/">
> >            <include name="log4j.properties"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes/DAOs" includeEmptyDirs="no">
> >        <fileset dir="src/">
> >            <include name="log4j.properties"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes/Classes" includeEmptyDirs="no">
> >        <fileset dir="src/">
> >            <include name="log4j.properties"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes/Controllers" includeEmptyDirs="no">
> >        <fileset dir="src/">
> >            <include name="log4j.properties"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes/Controllers" includeEmptyDirs="no">
> >        <fileset dir="src/Controllers">
> >            <include name="error.log"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/">
> >            <include name="properties.properties"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes/Controllers" includeEmptyDirs="no">
> >        <fileset dir="src/Controllers">
> >            <include name="error.properties"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes/Controllers" includeEmptyDirs="no">
> >        <fileset dir="src/">
> >            <include name="properties.properties"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/">
> >            <include name="message.properties"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/Classes/HibernateFiles">
> >            <include name="Bibliography.hbm.xml"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/Classes/HibernateFiles">
> >            <include name="MissedBooks.hbm.xml"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/Classes/HibernateFiles">
> >            <include name="ListOfBooks.hbm.xml"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/Classes/HibernateFiles">
> >            <include name="User.hbm.xml"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/Classes/HibernateFiles">
> >            <include name="Footnotes.hbm.xml"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/Classes/HibernateFiles">
> >            <include name="UserList.hbm.xml"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/Classes/HibernateFiles">
> >            <include name="BookList.hbm.xml"/>
> >        </fileset>
> >    </copy>
> >    <copy todir="classes" includeEmptyDirs="no">
> >        <fileset dir="src/Classes/HibernateFiles">
> >            <include name="ErrorBean.hbm.xml"/>
> >        </fileset>
> >    </copy>
> > </target>
> >
> > <!-- Normal build of application -->
> > <target name="compile" depends="prepare,resources">
> >    <javac srcdir="src" destdir="classes">
> >        <classpath refid="compile.classpath"/>
> >    </javac>
> > </target>
> >
> > <!-- Remove classes directory for clean build -->
> > <target name="clean" description="Prepare for clean build">
> >    <delete dir="classes"/>
> >    <mkdir dir="classes"/>
> > </target>
> >
> > <!-- Build entire project -->
> > <target name="project" depends="clean,prepare,compile"/>
> >
> > </project>
> >
> > The only reference in there I see that is hardcoded is one of the jars.
> I
> > hardcoded that because typing it relative to the src directory would
> have
> > been longer and more  complicated. Thanks.
> >
> > On 5/30/06, Scot P. Floess <floess@mindspring.com> wrote:
> >>
> >> 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
> >>
> >>
> >
>
> --
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message