javac cent exception

"Adam Jack" <[email protected]>
Newsgroups gmane.comp.krysalis.user
Message-ID <00ba01c2fd4f$1e590770$7c1ce641@wdn086>
When I run centipede (from latest in CVS, on Linux, on JDK j2sdk1.4.0_03)
from Gump I get this exception. When I run from the command line I don't
have a problem.
Looking at this line of code in ANT source I see:
    private static boolean doesModernCompilerExist() {
        try {
            Class.forName("com.sun.tools.javac.Main");
            return true;
        } catch (ClassNotFoundException cnfe) {
            try {
                CompilerAdapterFactory.class.getClassLoader().loadClass(
"com.sun.tools.javac.Main" );
                return true;
            } catch (ClassNotFoundException cnfe2) {
            }
        }
        return false;
    }

So I assume com.sun.tools.javac.Main is not found.
In my gump running script I know I export this (per Nick), see:
	declare -x CLASSPATH="/usr/java/j2sdk1.4.0_03/lib/tools.jar"
and:
	jar tvf /usr/java/j2sdk1.4.0_03/lib/tools.jar | grep -i javac
shows:
	   520 Fri Nov 01 23:01:36 MST 2002 com/sun/tools/javac/Main.class
.. so I beleive it starts out in my classpath, so I can't understand. I
*used* to be able to get ant inside centipede to work inside gump, on this
configuration of OS/JDK, so am I somehow corrupting the classpath, or is it
someithing in recent cent or ?????
All suggestions appreciated.
regards,
Adam
----------------------------------------------------------------------------
----------------

Total time: 13 seconds java.lang.NullPointerException at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCom
pilerExist(CompilerAdapterFactory.java:177) at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C
ompilerAdapterFactory.java:131) at
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:834) at
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:681) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:185) at
org.apache.tools.ant.Task.perform(Task.java:348) at
org.apache.tools.ant.Target.execute(Target.java:309) at
org.apache.tools.ant.Target.performTasks(Target.java:336) at
org.apache.tools.ant.Project.executeTarget(Project.java:1244) at
org.apache.tools.ant.Project.executeTargets(Project.java:1188) at
org.apache.tools.ant.Main.runBuild(Main.java:614) at
org.apache.tools.ant.Main.start(Main.java:197) at
org.apache.tools.ant.Main.main(Main.java:235)


--
<http://www.try.sybase.com>
Experience Sybase Technology ...



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.