Monday May 28, 2007

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher

When i run /usr/sfw/bin/ant command i get the below exception
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher

Workaround:

1. Set ANT_HOME=/usr/sfw
2. Set JAVA_HOME=/usr/jdk/entsys-j2se/
3.  /usr/sfw/bin/ant command should run successfully now

Note: On a PortalServer installed on Linux system, ant can be found in /opt/sun/bin/ant
 

About

I'm a Quality Engineer at Sun Microsystems. Here in this blog, you may find information about Software Testing, Portal Server, Virtualization, Web2.0 and Misc Technical topics. The views expressed here are personal and does not reflect that of my employer

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today