You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by eolo eolo <eo...@hotmail.com> on 2000/11/20 17:00:48 UTC

ant crash


Hi everybody,  

I'm trying to compile a demo that went with JacORB-1_2_3 and when try it.  
Ant crash generating the next error message:

init_compile:
    [mkdir] Created dir: /export/home/soft/JacORB-1_2_3/classes/demo
any:
init:
idl:
all:
    [javac] Compiling 18 source files to /export/home/soft/JacORB-1_2_3/classes
BUILD FAILED
java.lang.NoClassDefFoundError: sun/tools/javac/Main
        at org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java, Compiled Code)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java, Compiled Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java, Compiled Code)
        at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java, Compiled Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java, Compiled Code)
        at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code)
        at org.apache.tools.ant.Project.executeTargets(Project.java, Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java, Compiled Code)


----------------------------------------------------

bash-2.03$ env
PWD=/export/home/soft/JacORB-1_2_3/demo
jacorb=/export/home/pfc/epi/jacorb/jacorb
LD_LIBRARY_PATH=/opt/SUNWspro/lib:/export/home/Office50/bin:/usr/local/lib:
CLASSPATH=/usr/java/xml/jaxp.jar:/usr/java/xml/parser.jar:/usr/java/ant/ant.jar:/export/home/soft/JacORB-1_2_3/classes
MANPATH=:/usr/local/man:
MACHTYPE=sparc-sun-solaris2.6
SHELL=/bin/sh
HOSTTYPE=sparc
OSTYPE=solaris2.6
PATH=/usr/bin:/usr/openwin/bin:/usr/local/bin:/opt/netscape:/opt/Acrobat3/bin:/export/home/soft/JacORB-1_2_3/bin:/usr/ant/bin
______________________________________________


Any suggestion??


Regards, Epi___________________________________________________________
Get more from your time online.  FREE MSN Explorer download : http://explorer.msn.com

RE: ant crash

Posted by Conor MacNeill <co...@ebinteractive.com.au>.
Define JAVA_HOME so that ant can find tools.jar which contains the compiler.

--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au
-----Original Message-----
From: eolo eolo [mailto:eolosal@hotmail.com]
Sent: Tuesday, 21 November 2000 3:01
To: ant-dev@jakarta.apache.org
Subject: ant crash




Hi everybody,

I'm trying to compile a demo that went with JacORB-1_2_3 and when try it.
Ant crash generating the next error message:

init_compile:
    [mkdir] Created dir: /export/home/soft/JacORB-1_2_3/classes/demo
any:
init:
idl:
all:
    [javac] Compiling 18 source files to
/export/home/soft/JacORB-1_2_3/classes
BUILD FAILED
java.lang.NoClassDefFoundError: sun/tools/javac/Main
        at org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javacjava,
Compiled Code)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java, Compiled
Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java, Compiled
Code)
        at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
Code)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java, Compiled
Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java, Compiled
Code)
        at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
Code)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java, Compiled Code)


----------------------------------------------------

bash-2.03$ env
PWD=/export/home/soft/JacORB-1_2_3/demo
jacorb=/export/home/pfc/epi/jacorb/jacorb
LD_LIBRARY_PATH=/opt/SUNWspro/lib:/export/home/Office50/bin:/usr/local/lib:
CLASSPATH=/usr/java/xml/jaxp.jar:/usr/java/xml/parser.jar:/usr/java/ant/ant.
jar:/export/home/soft/JacORB-1_2_3/classes
MANPATH=:/usr/local/man:
MACHTYPE=sparc-sun-solaris2.6
SHELL=/bin/sh
HOSTTYPE=sparc
OSTYPE=solaris2.6
PATH=/usr/bin:/usr/openwin/bin:/usr/local/bin:/opt/netscape:/opt/Acrobat3/bi
n:/export/home/soft/JacORB-1_2_3/bin:/usr/ant/bin
______________________________________________


Any suggestion??


Regards, Epi

___________________________________________________________
Get more from your time online. FREE MSN Explorer download :
http://explorer.msn.com


Re: ant crash

Posted by Peter Donald <do...@apache.org>.
At 05:00  20/11/00 +0100, you wrote:
>
>
>Hi everybody,    I'm trying to compile a demo that went with JacORB-1_2_

Okay - it looks like you have not defined JAVA_HOME. Define that and it
will find compiler in $JAVA_HOM/lib/tools.jar. Alternatively you could grab
jikes (an opensource compiler from IBM). It is a lot faster and a lot more
compliant.

Cheers,

Pete

*------------------------------------------------------*
| Despite your efforts to be a romantic hero, you will |
| gradually evolve into a postmodern plot device.      |
*------------------------------------------------------*