File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes package javax.ejb does not exist with sun app server 8.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "package javax.ejb does not exist with sun app server 8.0" Watch "package javax.ejb does not exist with sun app server 8.0" New topic
Author

package javax.ejb does not exist with sun app server 8.0

Shashank Sharma
Ranch Hand

Joined: Sep 27, 2006
Posts: 91
my class path is
CLASSPATH C:\Sun\AppServer\lib\servlet-api.jar;C:\Sun\AppServer\lib\jsp-api.jar;
still i am getting error javax.ejb.* does not exist

Amol Katyare
Ranch Hand

Joined: Apr 02, 2007
Posts: 36
Probably, you are missing j2ee.jar on classpath. I had the same trouble with eclipse.


SCJP [1.4]
Shashank Sharma
Ranch Hand

Joined: Sep 27, 2006
Posts: 91
i checked it mu class path is:
.;C:\Java\jre1.6.0\lib\ext\QTJava.zip;C:\Sun\AppServer\lib\j2ee.jar;C:\Sun\AppServer\lib\appserv-rt.jar;.
what else should i add.
my bean class is compiling successfully without any errors.. but remote and remote home interface are not compiling..

C:\>cd java pro 08

C:\Java pro 08>javac mybeancomp.java
mybeancomp.java:3: package javax.rmi.RemoteException does not exist
import javax.rmi.RemoteException.*;
^
mybeancomp.java:8: cannot find symbol
symbol : class RemoteException
location: interface headfirst.mybeancomp
public String[] ShowData() throws RemoteException;
^
2 errors
 
wood burning stoves
 
subject: package javax.ejb does not exist with sun app server 8.0