DemoHome.java:22: cannot resolve symbol
Hi,
I am trying to do this example which is on EJB and code is also from Sun site: links below:
1.http://developer.java.sun.com/developer/onlineTraining/Beans/EJBTutorial/step1.html
2.http://developer.java.sun.com/developer/onlineTraining/Beans/EJBTutorial/step2.html
3.http://developer.java.sun.com/developer/onlineTraining/Beans/EJBTutorial/step3.html
DemoHome.Java
-
/**
* This is the Home interface it must extend javax.ejb.EJBHome
* and define one or more create() methods for the Bean.
*
* Note: The implementation of this interface is generated by the
*container tools.
*/
package ejb.demo;
import javax.ejb.*;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.*;
/**
* This interface is extremely simple it declares only one create method.
*/
public interface DemoHome extends EJBHome {
public Demo create() throws CreateException, RemoteException;
}
when i compiled this code (after Demo.java), i got the following error:
D:\ejb\demo>javac DemoHome.java
DemoHome.java:22: cannot resolve symbol
symbol : class Demo
location: interface ejb.demo.DemoHome
public Demo create() throws CreateException, RemoteException;
^
1 error
path details:
PATH=D:\WINNT\system32;D:\WINNT;D:\WINNT\System32\Wbem;D:\jakarta-tomcat-3.3a;D:\jdk1.3.1_02;D:\jdk1.3.1_0
2\bin;D:\jdk1.3.1_02\lib;D:\jdk1.3.1_02\jre;D:\Program Files\Microsoft SQL Server\80\Tools\BINN;D:\bea\wls
erver6.1\bin;D:\bea\wlserver6.1\classes;D:\bea\wlserver6.1\lib;D:\bea\jdk131\bin;D:\bea\jdk131\lib
classpath:
CLASSPATH=D:\jdk1.3.1_02\lib\tools.jar;D:\jdk1.3.1_02\lib\dt.jar;D:\jdk1.3.1_02\lib\htmlconverter.jar;D:\b
ea\wlserver6.1\lib\weblogic.jar;D:\bea\jdk131\lib\tools.jar;D:\bea\jdk131\lib\dt.jar;d:\ejb\demo
Can any body could help me in resoving this error.it sucks me and i am learning EJBs.please give me a reply how to correct my problem.
Kumar

