hi...
i am trying to deploy my ejb file which i learned from youtube videos...
so i go an Execption while running my clientEjb code..
it is as follows while running my client "HWorldClient"...

E:\ejbDemo>java HWorldClient
Exception in thread "main" java.lang.NoClassDefFoundError: HWorldClient (wrong 
name: part1/HWorldClient)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

can anyone help me plzzzzz

It looks like you have your HwWorldClient class in a package called part1, and you have messed up the package naming or folder structure in some way. Have a read of this tutorial that teaches you the correct way to use Java packages
http://docs.oracle.com/javase/tutorial/java/package/
(in particular study the section Managing Source and Class Files)

thanku i helped me... and i need want to know the settings to be done for php version5 in Apache tomacat 6.. could u plz help me??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.