How can i resolve the NoClassDefFoundError?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   junior_junior
Posted On:   Sunday, June 11, 2006 02:50 AM

Hi, i am working with mobil agents for sniffing a lan.But when i create a new instance of my class on a remote machine, it triggers errors .Those instructions are: Class cl=Agence.loader.loadClassFromBytes((String)bytecodes.get(vSize-2), (byte[])bytecodes.get(vSize-1), true); Object test=cl.newInstance(); That is the error message: java.lang.NoClassDefFoundError: recherchereseau/ui at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610) at java.lang.Class.getConstructor0(Class.java:1922) at java.lang.Class.newInstance0(Class.java:278) at java.lang.Class.newInstance(Class.java:261)    More>>

Hi,
i am working with mobil agents for sniffing a lan.But when i create a new instance of my class on a remote machine, it triggers errors .Those instructions are:

Class cl=Agence.loader.loadClassFromBytes((String)bytecodes.get(vSize-2), (byte[])bytecodes.get(vSize-1), true);
Object test=cl.newInstance();




That is the error message:
java.lang.NoClassDefFoundError: recherchereseau/ui
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
at java.lang.Class.getConstructor0(Class.java:1922)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at agentmobile.NetworkListener.run(Agence.java:140)

I need a help , please.


regards.

   <<Less

Re: How can i resolve the NoClassDefFoundError?

Posted By:   govind_raju  
Posted On:   Thursday, June 15, 2006 03:00 AM

Hi


You make sure , jar file or class file for Agence.loader.loadClassFromBytes is include .




Govind.
About | Sitemap | Contact