Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 274 invoked from network); 1 May 2002 17:19:36 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 May 2002 17:19:36 -0000 Received: (qmail 9858 invoked by uid 97); 1 May 2002 17:19:29 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@nagoya.betaversion.org Received: (qmail 9775 invoked by alias); 1 May 2002 17:19:29 -0000 Delivered-To: jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 9761 invoked by uid 97); 1 May 2002 17:19:29 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 9749 invoked by uid 98); 1 May 2002 17:19:28 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3CD031C5.403D61E8@yanasweb.com> Date: Wed, 01 May 2002 13:19:49 -0500 From: Ruben Thomas Yanas X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; I) X-Accept-Language: en MIME-Version: 1.0 To: Ant Users List Subject: Re: Modern compiler - classic compiler References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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" 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: > > For additional commands, e-mail: > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: