I have three ejb source files (File1, File2, File3)as
follows:
First line in File1.java is: package Combined.ejb;
(Location in my hard drive -
d:\home\ejbexamples\Combined\ejb)
[I am instantiating File2 and File3 from File1, using
import statements]
First line in File2.java is: package Combined.ejb.pl;
(Location in my hard drive -
d:\home\ejbexamples\Combined\ejb\p1)
First line in File3.java is: package Combined.ejb.p2;
(Location in my hard drive -
d:\home\ejbexamples\Combined\ejb\p1)
I make d:\home\ejbexamples\Combined\ejb as my current
directory and set the classpath as follows:
set classpath=.;d:\home\ejbexamples
I am able to compile it perfectly. But when i run it,
it gives me the following error.
Exception in thread "main"
java.lang.NoClassDefFoundError: File1 (wrong name
: Combined/ejb/File1)
at java.lang.ClassLoader.defineClass0(Native
Method)
at
java.lang.ClassLoader.defineClass(ClassLoader.java:477)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
9)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
at
java.net.URLClassLoader.access$1(URLClassLoader.java:217)
at
java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:192)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:298)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
Please help me
Regards
Bansi
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail � Free email you can access from anywhere!
http://mail.yahoo.com/
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".