• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shashank Sharma
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably, you are missing j2ee.jar on classpath. I had the same trouble with eclipse.
 
Shashank Sharma
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic