Home » Eclipse Projects » Eclipse Platform » Runtime NoClassDefFound 3.07
Runtime NoClassDefFound 3.07 [message #205233] |
Wed, 03 March 2004 09:35  |
Eclipse User |
|
|
|
Hi All,
I have two external jars, one for castor and one for castor
generated files. I have added these to my project properties
and my plugin compiles fine (although sometimes when I save my
plugin.xml I have to re-add the jars). My problem is that when
I run my plugin in the runtime env I get a NoClassDefFound exception.
I'm sure the solution is something that a more experienced Eclipse
developer could easily solve. Here is my .classpath:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="lib"
path="E:/UNetworks/KAFEProject/lib/kdas/kdas.jar"/>
<classpathentry exported="true" kind="lib"
path="E:/UNetworks/KAFEProject/lib/castor/castor-0.9.5.2-xml.jar "/>
<classpathentry kind="output" path="bin"/>
</classpath>
and my build.properties:
bin.includes = plugin.xml,\
META-INF/,\
kdasUI.jar,\
icons/,\
build.properties,\
bin/,\
kdas.jar,\
castor-0.9.5.2-xml.jar
source.kdasUI.jar = src/
output.kdasUI.jar = bin/
source.kdas.jar =
source.castor-0.9.5.2-xml.jar =
src.includes = plugin.xml,\
icons/,\
build.properties,\
bin/
jars.compile.order = castor-0.9.5.2-xml.jar,\
kdas.jar,\
kdasUI.jar
any suggestions?
Thanks,
Andrew
|
|
|
Re: Runtime NoClassDefFound 3.07 [message #205298 is a reply to message #205233] |
Wed, 03 March 2004 10:50   |
Eclipse User |
|
|
|
Originally posted by: ifedorenko.rogers.com
Do you have these jar files in runtime section of plugin.xml? Something
similar to
<runtime>
<library name="lib/log4j.jar">
<export name="*"/>
</library>
</runtime>
Note that you cannot use absolute paths and jarfiles have to be contains
within your plugin directory structure.
Andrew Boyd wrote:
> Hi All,
> I have two external jars, one for castor and one for castor
> generated files. I have added these to my project properties
> and my plugin compiles fine (although sometimes when I save my
> plugin.xml I have to re-add the jars). My problem is that when
> I run my plugin in the runtime env I get a NoClassDefFound exception.
>
> I'm sure the solution is something that a more experienced Eclipse
> developer could easily solve. Here is my .classpath:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <classpath>
> <classpathentry kind="src" path="src"/>
> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
> <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> <classpathentry exported="true" kind="lib"
> path="E:/UNetworks/KAFEProject/lib/kdas/kdas.jar"/>
> <classpathentry exported="true" kind="lib"
> path="E:/UNetworks/KAFEProject/lib/castor/castor-0.9.5.2-xml.jar "/>
> <classpathentry kind="output" path="bin"/>
> </classpath>
>
> and my build.properties:
> bin.includes = plugin.xml,\
> META-INF/,\
> kdasUI.jar,\
> icons/,\
> build.properties,\
> bin/,\
> kdas.jar,\
> castor-0.9.5.2-xml.jar
> source.kdasUI.jar = src/
> output.kdasUI.jar = bin/
> source.kdas.jar =
> source.castor-0.9.5.2-xml.jar =
> src.includes = plugin.xml,\
> icons/,\
> build.properties,\
> bin/
> jars.compile.order = castor-0.9.5.2-xml.jar,\
> kdas.jar,\
> kdasUI.jar
>
> any suggestions?
>
> Thanks,
>
> Andrew
>
|
|
|
Re: Runtime NoClassDefFound 3.07 [message #205342 is a reply to message #205298] |
Wed, 03 March 2004 11:47   |
Eclipse User |
|
|
|
Hi Igor,
Thanks for your response. I don't have the jars mentioned in my
plugin.xml. Should I do this by hand or is there a better way?
Do I need to create the lib dir myself or will eclipse do it for
me somehow?
Thanks again,
Andrew
Igor Fedorenko wrote:
> Do you have these jar files in runtime section of plugin.xml? Something
> similar to
> <runtime>
> <library name="lib/log4j.jar">
> <export name="*"/>
> </library>
> </runtime>
> Note that you cannot use absolute paths and jarfiles have to be contains
> within your plugin directory structure.
> Andrew Boyd wrote:
> > Hi All,
> > I have two external jars, one for castor and one for castor
> > generated files. I have added these to my project properties
> > and my plugin compiles fine (although sometimes when I save my
> > plugin.xml I have to re-add the jars). My problem is that when
> > I run my plugin in the runtime env I get a NoClassDefFound exception.
> >
> > I'm sure the solution is something that a more experienced Eclipse
> > developer could easily solve. Here is my .classpath:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <classpath>
> > <classpathentry kind="src" path="src"/>
> > <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
> > <classpathentry kind="con"
> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> > <classpathentry exported="true" kind="lib"
> > path="E:/UNetworks/KAFEProject/lib/kdas/kdas.jar"/>
> > <classpathentry exported="true" kind="lib"
> > path="E:/UNetworks/KAFEProject/lib/castor/castor-0.9.5.2-xml.jar "/>
> > <classpathentry kind="output" path="bin"/>
> > </classpath>
> >
> > and my build.properties:
> > bin.includes = plugin.xml,
> > META-INF/,
> > kdasUI.jar,
> > icons/,
> > build.properties,
> > bin/,
> > kdas.jar,
> > castor-0.9.5.2-xml.jar
> > source.kdasUI.jar = src/
> > output.kdasUI.jar = bin/
> > source.kdas.jar =
> > source.castor-0.9.5.2-xml.jar =
> > src.includes = plugin.xml,
> > icons/,
> > build.properties,
> > bin/
> > jars.compile.order = castor-0.9.5.2-xml.jar,
> > kdas.jar,
> > kdasUI.jar
> >
> > any suggestions?
> >
> > Thanks,
> >
> > Andrew
> >
|
|
|
Re: Runtime NoClassDefFound 3.07 [message #205414 is a reply to message #205342] |
Wed, 03 March 2004 12:34  |
Eclipse User |
|
|
|
I added the lib dir and the jars to the lib dir by hand and
added the reference to the jars just like you said and it Works!
Although everytime I save my plugin.xml I have to re-add my external
jars to my plugin env. But at least I can run now.
Thanks Igor!
Andrew
Andrew Boyd wrote:
> Hi Igor,
> Thanks for your response. I don't have the jars mentioned in my
> plugin.xml. Should I do this by hand or is there a better way?
> Do I need to create the lib dir myself or will eclipse do it for
> me somehow?
> Thanks again,
> Andrew
> Igor Fedorenko wrote:
> > Do you have these jar files in runtime section of plugin.xml? Something
> > similar to
> > <runtime>
> > <library name="lib/log4j.jar">
> > <export name="*"/>
> > </library>
> > </runtime>
> > Note that you cannot use absolute paths and jarfiles have to be contains
> > within your plugin directory structure.
> > Andrew Boyd wrote:
> > > Hi All,
> > > I have two external jars, one for castor and one for castor
> > > generated files. I have added these to my project properties
> > > and my plugin compiles fine (although sometimes when I save my
> > > plugin.xml I have to re-add the jars). My problem is that when
> > > I run my plugin in the runtime env I get a NoClassDefFound exception.
> > >
> > > I'm sure the solution is something that a more experienced Eclipse
> > > developer could easily solve. Here is my .classpath:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <classpath>
> > > <classpathentry kind="src" path="src"/>
> > > <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
> > > <classpathentry kind="con"
> > > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> > > <classpathentry exported="true" kind="lib"
> > > path="E:/UNetworks/KAFEProject/lib/kdas/kdas.jar"/>
> > > <classpathentry exported="true" kind="lib"
> > > path="E:/UNetworks/KAFEProject/lib/castor/castor-0.9.5.2-xml.jar "/>
> > > <classpathentry kind="output" path="bin"/>
> > > </classpath>
> > >
> > > and my build.properties:
> > > bin.includes = plugin.xml,
> > > META-INF/,
> > > kdasUI.jar,
> > > icons/,
> > > build.properties,
> > > bin/,
> > > kdas.jar,
> > > castor-0.9.5.2-xml.jar
> > > source.kdasUI.jar = src/
> > > output.kdasUI.jar = bin/
> > > source.kdas.jar =
> > > source.castor-0.9.5.2-xml.jar =
> > > src.includes = plugin.xml,
> > > icons/,
> > > build.properties,
> > > bin/
> > > jars.compile.order = castor-0.9.5.2-xml.jar,
> > > kdas.jar,
> > > kdasUI.jar
> > >
> > > any suggestions?
> > >
> > > Thanks,
> > >
> > > Andrew
> > >
|
|
|
Goto Forum:
Current Time: Thu Jul 17 07:08:54 EDT 2025
Powered by FUDForum. Page generated in 0.04885 seconds
|