ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16599] New: - class loading problem
Date Thu, 30 Jan 2003 15:47:52 GMT
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


Mime
View raw message