Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does javax.ejb exists!!

 
Puneet Vashisht
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guyz,
I'm putting my ques in a different way!!.
I compile this code:

package headfirst;
import javax.ejb.*;
import java.rmi.RemoteException;

public interface Advice extends EJBObject{
public String getAdvice() throws RemoteException;
}

and i get these two errors:
C:\projects\advice\src\headfirst\Advice.java:3: package javax.ejb does not exist
import javax.ejb.*;
^
C:\projects\advice\src\headfirst\Advice.java:6: cannot resolve symbol
symbol : class EJBObject
location: interface headfirst.Advice
public interface Advice extends EJBObject{
^
2 errors

Can some1 help me know, wats wrong with this.

Thankz,
Puneet
 
Karthikeyan Varadarajan
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Punit,

the j2EE.jar , which has the EJBObject interface is missing in your classpath. just put the jar file in your class path. this will solve the prolem.

WIth SMile
VK
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic