i got error below,i don't know why? is something i did not set up env?
C:\myEjb\classes>java StudentClient
Exception in thread "main" java.lang.NoClassDefFoundError: StudentClient
--------------------------------------------------------------------------
import javax.ejb.*;
import javax.rmi.*;
import java.rmi.*;
import java.util.*;
import javax.swing.*;
import javax.naming.*;
public class StudentClient{
public static void main(String args[])
{
try{
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, "t3://localhost:7001");
Context initial=new InitialContext( properties);
Object obj=initial.lookup("StudentObject");
StudentHome studentHome=(StudentHome) PortableRemoteObject.narrow(obj,StudentHome.class);
Student student=null;
if(student!=null)
{
System.out.println("user already existed");
student.remove();
}
student=studentHome.create(new Integer("1"),"kevin","Wu");
student=studentHome.create(new Integer("2"),"john","smith");
System.out.println("create user");
//try{
//student=studentHome.findByPrimaryKey(new Integer("1"));
//}catch(FinderException e){
//System.out.println("Did not find");
//}
//System.out.println("Found:"+student.getLast()+","+student.getFirst());
}catch(Exception e){
System.out.println(e);
JOptionPane.showMessageDialog(null,"Exception:"+e);
}
}
}