ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruben Thomas Yanas <...@yanasweb.com>
Subject Re: Modern compiler - classic compiler
Date Wed, 01 May 2002 18:19:49 GMT

That seemed to fix it.  Thank you so much.

Jay Riddell wrote:

> I *think* this is caused by not having $JAVA_HOME/lib/tools.jar
> in the Classpath.
>
> On 4/30/02 12:51 PM, "Ruben Thomas Yanas" <rty@yanasweb.com> wrote:
>
> >
> > In trying to build the j2ee tutorial, I am getting
> > an error.  On a Windows 200 platform I have JBoss
> > with Tomcat, and the JDK SDK 1.3.1. With Ant 1.4.1
> >
> > I can compile the example classes from a command line without
> > a problem. When I try building using ant, I get the
> > errors:
> >
> > ****************************************************
> >
> >
> >
> > In trying to build the j2ee tutorial, I am getting
> > an error.  On a Windows 200 platformm I have JBoss
> > with Tomcat, and the JDK SDK 1.3.1. With Ant 1.4.1
> >
> > I can compile the example classes from a command line without
> > a problem. When I try building using ant, I get the
> > erorrs:
> >
> > *****************************************************
> >
> > E:\J2SDK1_3_1\j2eetutorial\examples>ant -verbose web
> > The system cannot find the path specified.
> > The system cannot find the path specified.
> > The system cannot find the path specified.
> > Ant version 1.4 compiled on April 18 2002
> > Buildfile: build.xml
> > Detected Java version: 1.3 in: e:\J2SDK1_3_1\JavaSDK\jre
> > Detected OS: Windows 2000
> > parsing buildfile E:\J2SDK1_3_1\j2eetutorial\examples\build.xml with URI =
> > file:E:/J2SDK1_
> > 3_1/j2eetutorial/examples/build.xml
> > Project base dir set to: E:\J2SDK1_3_1\j2eetutorial\examples
> > Build sequence for target `web' is [init, date, hello1, hello2, bookstore1,
> > web-ejb, books
> > tore2, bookstore3, web]
> > Complete build sequence is [init, date, hello1, hello2, bookstore1, web-ejb,
> > bookstore2, b
> > ookstore3, web, create-storagebin-table, get-cci-jar, procs, cci, connector,
> > create-salesr
> > ep-table, cmproster, confirmer, htmlreader, create-procs-alias,
> > savingsaccount, simplemess
> > age, salesrep, create-coffee-table, enroller, checker, bank, cart, converter,
> > order, stora
> > gebin, teller, warehouse, ejb, all, about, create-enroller-table,
> > create-savingsaccount-ta
> > ble, create-web-db, create-warehouse-table, create-bank-table, clean,
> > create-order-table,
> > create-teller-table, prepare, create-ejb-db]
> >
> > init:
> > [property] Loading Environment myenv.
> >
> > date:
> >    [copy] date.jsp omitted as
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\date.js
> > p is up to date.
> >    [copy] duke.waving.gif omitted as
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\
> > duke.waving.gif is up to date.
> >    [copy] index.jsp omitted as
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\index.
> > jsp is up to date.
> >    [copy]  omitted as E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date is
> > up to date.
> >   [javac] MyDate.java added as
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\MyDate
> > .class doesn't exist.
> >   [javac] MyLocales.java added as
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\MyL
> > ocales.class doesn't exist.
> >   [javac] date.jsp skipped - don't know how to handle it
> >   [javac] date.txt skipped - don't know how to handle it
> >   [javac] duke.waving.gif skipped - don't know how to handle it
> >   [javac] index.jsp skipped - don't know how to handle it
> >   [javac] index.txt skipped - don't know how to handle it
> >   [javac] Modern compiler is not available - using classic compiler
> >   [javac] Compiling 2 source files to
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date
> >
> >   [javac] Using classic compiler
> >   [javac] Compilation args: -d
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date -class
> > path
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date;E:\J2SDK1_3_1\JavaSDKEE\lib
> > \j2ee.j
> >
> > ar;E:\J2SDK1_3_1\j2eetutorial\examples\build\web\hello1;E:\JBoss\JBoss-2.4.4_T
> > omcat-4.0.1\
> >
> > jboss\lib\crimson.jar;E:\JBoss\JBoss-2.4.4_Tomcat-4.0.1\jboss\lib\jaxp.jar;E:\
> > jakarta-ant-
> >
> > 1.4\bootstrap\lib\ant.jar -sourcepath
> > E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date -g:
> > none
> >   [javac] Files to be compiled:
> >   E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date\MyDate.java
> >   E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date\MyLocales.java
> >
> >
> > BUILD FAILED
> >
> > E:\J2SDK1_3_1\j2eetutorial\examples\build.xml:181: Cannot use classic
> > compiler, as it is n
> > ot available A common solution is to set the environment variable JAVA_HOME to
> > your jdk di
> > rectory.
> >       at
> > org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:96)
> >       at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:530)
> >       at org.apache.tools.ant.Task.perform(Task.java:217)
> >       at org.apache.tools.ant.Target.execute(Target.java:164)
> >       at org.apache.tools.ant.Target.performTasks(Target.java:182)
> >       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: 3 seconds
> >
> > The JAVAA_HOME variable is set and does seem to work when I compile
> > on the command line.  Any ideas how to fix the preceeding error?
> >
> > I am new to ant, but didn't have a problem building the
> > JBoss server.
> >
> > ****************************************************
> >
> > The JAVAA_HOME variable is set and does seem to work when I compile
> > on the command line.  Any ideas how to fix the preceeding errors?
> >
> > I am new to ant, but didn't have a problem building the
> > JBoss server.
> >
> > Regards,
> >
> > Tom
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


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


Mime
View raw message