[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Please, help
[For the HTML-mail impaired, which generally includes me, below is the plain
text translation of Soussi Idrissi Mourad's <idrissi_mourad@hotmail.com> recent
message.]
[Soussi: Most of the people who read the <janos-discuss> mailing list don't use
HTML-enabled mail readers, so it would be helpful to us if you could send plain
text messages in the future. Thanks! --- Eric.]
-------------------------------------------------------------------------------
Hello,
I want to create just a simple Node so i write the program shown below :
package ants.core;
import ants.core.Node;
import ants.core.UnknownMidPackets;
import ants.core.security.Principal;
import ants.core.security.SecurityDefaults;
import edu.utah.janos.nodeos.Flow;
public class NoeudANTS extends Node
{
NoeudANTS(Flow flow,UnknownMidPackets unknownMidPacket,Principal principal)
{
super(flow,unknownMidPacket,principal);
}
static public void main(String[] args)
{
UnknownMidPackets unknownMidPacket=new UnknownMidPackets();
Principal principal=SecurityDefaults.BOOTSTRAP_USER;
Flow flow=Flow.currentFlow();
NoeudANTS noeudANTS=new NoeudANTS(flow,unknownMidPacket,principal);
System.out.println("Le noeud est cree");
}
}
There no errors in compilation but when i try to execute it, he show me the
next error's message:
Exception in thread "main" java.lang.NoClassDefFoundError: NoeudANTS (wrong name: ants/core/NoeudANTS)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClas! sLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
So please, can someone tell me where is the problem and quickly please.
Thanks.
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
- References:
- Please, help
- From: "Soussi Idrissi Mourad" <idrissi_mourad@hotmail.com>
[ Janos ] [ OSKit ] [ Network Testbed ] [ Flick ] [ Fluke ]
Flux Research Group / Department of Computer Science / University of Utah