Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Home Interface Compilation Error

Status
Not open for further replies.

sap

Technical User
Aug 20, 2001
37
0
0
IN
simple code for Home Interface gives compilation error.code is as follows-

import java.io.Serializable;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
public interface DemoHome extends EJBHome
{
public Demo create() throws CreateException, RemoteException;
}

this code when compiled gives following Error:-

DemoHome.java:7: cannot resolve symbol
symbol : class Demo
location : interface Demohome
public Demo create() throws CreateException,
/\
RemoteException;


any solution pls.thanX in adv.
 
The compiler does not know what 'Demo' is in the line :
"public Demo create() throws CreateException, RemoteException;"

Eg, public Object create() throws CreateException, RemoteException;

would be OK - but the compiler has no reference to 'Demo'

 
In this example "Demo" is the name of the Remote Interface as well.which is in the same directory.So compiler should easily get it noticed.
In all other examples i got the same error. other Codes like remote Interface and bean class get compiled easily.
With Examples from Sun.com and reference books the same error is generated.

where the bug lies ??
by the way i've jdk1.3.1 and j2sdkee1.3 installed on win2k server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top