Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cann't find javax.ejb in jdk1.4

 
sajjad ahmad
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have installed jdk1.4 and set the classpath and path variables but when i try to compile following code
import java.rmi.RemoteException;
import java.rmi.Remote;
import javax.ejb.*;
public interface Demo extends EJBObject, Remote {

public String demoSelect() throws RemoteException;
}
it shows me the error that the peckage javax.ejb doesn't exist and cann't resolve the symbol EJBObject.
will somebody help me that y i m getting that errors and how can i get rid of them.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB is not part of J2SE, it is part of J2EE. All Application Servers come with a copy of the J2EE classes, you just have to know where to look.
What Application Server are you using?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic