• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't compile EJB's

 
Nikita Deshmukh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I am trying to write a simple stateless ejb and I can't compile the interfaces and the bean class. One of the errors I am getting is as follows :

DemoHome.java:12: cannot find symbol
symbol : class CreateException
location: interface com.EJBPract.DemoHome
public Demo create() throws CreateException, RemoteException;
^
I have tried setting the classpth also. Some guidance on setting the classpath would help.

i have downloaded and installed j2eesdk-1_4_02_2005Q2-windows.exe. Any problem with this.

Please I need help with this so that I can proceed forward ....

Thanks
Niki
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nikita Deshmukh:
I have tried setting the classpth also. Some guidance on setting the classpath would help.


Once I found out the J2EE 1.4 SDK and Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 deployed JSE 1.5, I prepared by uninstalling any previous Java installations (1.4, 1.5.04, 1.3EE)
After installation I set the following environment variables:
  • J2EE_HOME = D:\etc\AppServer
  • JAVA_HOME = %J2EE_HOME%\jdk
  • Path = ...;%JAVA_HOME%\bin;%J2EE_HOME%\bin;...
  • CLASSPATH= .;%J2EE_HOME%\lib\j2ee.jar


  • Hope this helps.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic