ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Marco.Mistr...@nokia.com>
Subject problem with <java> task in ant 1.4.1
Date Fri, 08 Mar 2002 08:51:25 GMT
hi all,
	i have posted this msg two times already (under another title),
and i hope that this time someone can give me some hints.

I have written a CORBA client and i want to start it using ant.
i read the documentation that says to include classpath etc..

i included all the jar files needed, but suprise surpries i got
an exception that does NOT come from a jar file missing, but
from a class that is included by default in JDK1.3.1, org.omg.CORBA.portable.IDLEntity.

below is the exception

> java.lang.NoClassDefFoundError: org/omg/CORBA/portable/IDLEntity
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at 
> org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader
> .java:862)
>         at 
> org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoa
> der.java:916)
>         at 
> org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:898
> )
>         at 
> org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:801
> )
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
>         at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
>         at java.lang.Class.getMethod0(Native Method)
>         at java.lang.Class.getMethod(Class.java:888)
>         at 
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:12
> 3)
>         at org.apache.tools.ant.taskdefs.Java.run(Java.java:305)
>         at 
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:127)
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:88)
>         at org.apache.tools.ant.Task.perform(Task.java:217)
>         at org.apache.tools.ant.Target.execute(Target.java:184)
>         at org.apache.tools.ant.Target.performTasks(Target.java:202)
>         at 
> org.apache.tools.ant.Project.executeTarget(Project.java:601)
>         at 
> org.apache.tools.ant.Project.executeTargets(Project.java:560)
>         at org.apache.tools.ant.Main.runBuild(Main.java:454)
>         at org.apache.tools.ant.Main.start(Main.java:153)
>         at org.apache.tools.ant.Main.main(Main.java:176)
> 
> 

here is the content of my build.xml file
> 
> <project name="MyDemo" default="run"   basedir=".">
> 
>   <!-- set global properties for this build -->
>   
>   <property name="build" value="build"/>
>   <property name="dist"  value="dist"/>
>   <property name="JAVA_HOME" value="d:\jdk1.3.1"/>
>   <property name="XML_LIB" value="d:\lib\xml_lib"/>
>   <property name="DIST_LIB" value="d:\dist\lib"/>    
>   
>   
> 
>   <target name="run">
>     <!-- run the Sun version of SBSClient -->
>     <java classname="MyClient">
>     <classpath>
>          <pathelement location="${DIST_LIB}\MyClient.jar"/> 
>          <pathelement location="${XML_LIB}\castor-xml.jar"/>
>          <pathelement location="${XML_LIB}\xerces.jar"/>
>          <pathelement location="${XML_LIB}\jaxp.jar"/>
>          
>                
>      </classpath>
>     
>    </java>
>   </target>
>    
> </project>
> 


can anyone tell me what is wrong??

thanx in advance and regards
	marco

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message