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

[2143 byte] By [kbandlab5] at [2007-9-26 21:14:06]
# 1
the compiler uses a path based on the package name for searching Demo class and so that it is trying to find it in a subdirectory \ejb\demo from your home directory.the file Demo.class should be in d:\ejb\demo\ejb\demo.I Hope this help you
rickdcar at 2007-7-3 20:44:31 > top of Java-index,Developer Tools,Java Compiler...
# 2
Class Demo should be in the classpath.
dvohra09 at 2007-7-3 20:44:31 > top of Java-index,Developer Tools,Java Compiler...