You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jon <ca...@gmail.com> on 2008/09/16 05:43:22 UTC

[NEWBIE] Building Tomcat 6.0.18

Apache Tomcat 6.0.18
Apache Ant 1.7
Java JDK v1.6

BUILDING.txt step 2.2
I'm trying to build Apache; when I type *ant_build or ant* from any path,
the following error is displayed:
*Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher
Caused by: java.lang.ClassNotFoundException:
org.apache.tools.ant.launch.Launcher
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[root@localhost apache-tomcat-6.0.18-src]# *


-- 
Jon Camilleri

Mobile (MT): 00356 7982 7113
E-mail: camilleri.jon@gmail.com
Please consider your environmental responsibility before printing this
e-mail.

I usually reply to e-mails within 2 business days. If it's urgent, give me a
call.

Re: [NEWBIE] Building Tomcat 6.0.18

Posted by Mark Thomas <ma...@apache.org>.
Jon wrote:
> I'm getting this error when I type ant download

Google is your friend.

http://ant.apache.org/faq.html#NoClassDefFoundError

Mark

> 
> 2008/9/16 Filip Hanik - Dev Lists <de...@hanik.com>
> 
>> Downgrade to JDK 1.5
>> then the steps to build are
>>
>> ant download
>> ant
>> ant -f extras.xml
>> ant -f dist.xml release
>>
>> builds a full release, after step 2, you have a complete tomcat build in
>> output/build
>>
>> Filip
>>
>> Jon wrote:
>>
>>> Apache Tomcat 6.0.18
>>> Apache Ant 1.7
>>> Java JDK v1.6
>>>
>>> BUILDING.txt step 2.2
>>> I'm trying to build Apache; when I type /ant_build or ant/ from any path,
>>> the following error is displayed:
>>> /Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/apache/tools/ant/launch/Launcher
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.apache.tools.ant.launch.Launcher
>>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>        at java.security.AccessController.doPrivileged(Native Method)
>>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>> [root@localhost apache-tomcat-6.0.18-src]# /
>>>
>>>
>>> --
>>> Jon Camilleri
>>>
>>> Mobile (MT): 00356 7982 7113
>>> E-mail: camilleri.jon@gmail.com <ma...@gmail.com>
>>> Please consider your environmental responsibility before printing this
>>> e-mail.
>>>
>>> I usually reply to e-mails within 2 business days. If it's urgent, give me
>>> a call.
>>> ------------------------------------------------------------------------
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: [NEWBIE] Building Tomcat 6.0.18

Posted by David Smith <dn...@cornell.edu>.
>
> Downgrade to JDK 1.5
>   
You need to re read Filip's answer.  You're still using a 1.6 JDK for
the build process.

--David

Jon wrote:
> I'm getting this error when I type ant download
>
> 2008/9/16 Filip Hanik - Dev Lists <de...@hanik.com>
>
>   
>> Downgrade to JDK 1.5
>> then the steps to build are
>>
>> ant download
>> ant
>> ant -f extras.xml
>> ant -f dist.xml release
>>
>> builds a full release, after step 2, you have a complete tomcat build in
>> output/build
>>
>> Filip
>>
>> Jon wrote:
>>
>>     
>>> Apache Tomcat 6.0.18
>>> Apache Ant 1.7
>>> Java JDK v1.6
>>>
>>> BUILDING.txt step 2.2
>>> I'm trying to build Apache; when I type /ant_build or ant/ from any path,
>>> the following error is displayed:
>>> /Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/apache/tools/ant/launch/Launcher
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.apache.tools.ant.launch.Launcher
>>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>        at java.security.AccessController.doPrivileged(Native Method)
>>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>> [root@localhost apache-tomcat-6.0.18-src]# /
>>>
>>>
>>> --
>>> Jon Camilleri
>>>
>>> Mobile (MT): 00356 7982 7113
>>> E-mail: camilleri.jon@gmail.com <ma...@gmail.com>
>>> Please consider your environmental responsibility before printing this
>>> e-mail.
>>>
>>> I usually reply to e-mails within 2 business days. If it's urgent, give me
>>> a call.
>>> ------------------------------------------------------------------------
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>       
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>     
>
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: [NEWBIE] Building Tomcat 6.0.18

Posted by Jon <ca...@gmail.com>.
I'm getting this error when I type ant download

2008/9/16 Filip Hanik - Dev Lists <de...@hanik.com>

> Downgrade to JDK 1.5
> then the steps to build are
>
> ant download
> ant
> ant -f extras.xml
> ant -f dist.xml release
>
> builds a full release, after step 2, you have a complete tomcat build in
> output/build
>
> Filip
>
> Jon wrote:
>
>> Apache Tomcat 6.0.18
>> Apache Ant 1.7
>> Java JDK v1.6
>>
>> BUILDING.txt step 2.2
>> I'm trying to build Apache; when I type /ant_build or ant/ from any path,
>> the following error is displayed:
>> /Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/tools/ant/launch/Launcher
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.tools.ant.launch.Launcher
>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> [root@localhost apache-tomcat-6.0.18-src]# /
>>
>>
>> --
>> Jon Camilleri
>>
>> Mobile (MT): 00356 7982 7113
>> E-mail: camilleri.jon@gmail.com <ma...@gmail.com>
>> Please consider your environmental responsibility before printing this
>> e-mail.
>>
>> I usually reply to e-mails within 2 business days. If it's urgent, give me
>> a call.
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Jon Camilleri

Mobile (MT): 00356 7982 7113
E-mail: camilleri.jon@gmail.com
Please consider your environmental responsibility before printing this
e-mail.

I usually reply to e-mails within 2 business days. If it's urgent, give me a
call.

Re: [NEWBIE] Building Tomcat 6.0.18

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Downgrade to JDK 1.5
then the steps to build are

ant download
ant
ant -f extras.xml
ant -f dist.xml release

builds a full release, after step 2, you have a complete tomcat build in 
output/build

Filip

Jon wrote:
> Apache Tomcat 6.0.18
> Apache Ant 1.7
> Java JDK v1.6
>
> BUILDING.txt step 2.2
> I'm trying to build Apache; when I type /ant_build or ant/ from any 
> path, the following error is displayed:
> /Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/tools/ant/launch/Launcher
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.tools.ant.launch.Launcher
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> [root@localhost apache-tomcat-6.0.18-src]# /
>
>
> -- 
> Jon Camilleri
>
> Mobile (MT): 00356 7982 7113
> E-mail: camilleri.jon@gmail.com <ma...@gmail.com>
> Please consider your environmental responsibility before printing this 
> e-mail.
>
> I usually reply to e-mails within 2 business days. If it's urgent, 
> give me a call.
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org