You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/01/30 16:47:52 UTC

DO NOT REPLY [Bug 16599] New: - class loading problem

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16599>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16599

class loading problem

           Summary: class loading problem
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: pwomack@engage.com


(This may well be my newbie fault;
I have 5 DAYS java experience)

I have a simple project which is using (amongst other things)
the XML parser that ships with j2sdk1.41_01

My project has a single classpath property,
which is used for compilation (<javac> task),
junit testing (<junit> task) and
excercising the application (<java> task).

Or at least it should be. But the <java> task
won't run my application unless I use fork="yes".
If I don't I get the following problem:

Buildfile: build.xml

init:

build-java:

run:
     [java] java.lang.NoClassDefFoundError: org/xml/sax/SAXException

BUILD SUCCESSFUL
Total time: 5 seconds

For reference the class *is* in jar file
/usr/java/j2sdk1.4.1_01/jre/lib/rt.jar

So; why does it all work for <junit> and <javac>, or
conversely why doesn't it work for <java>?

Or is it a bug?

     BugBear

---------------------------------------------------------------------
To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-dev-help@jakarta.apache.org