Forums Register Login

Unable to compile home interface file

+Pie Number of slices to send: Send
Hi I am trying to code an EJB example. However, it is not compiling the home interface . It gives no promblem for remote interface and bean class.
The code for remote interface is


The code for home interface is as follows

While compiling home interface it gives the error as :-
C:\Test\EJB>javac -classpath "C:\j2sdkee1.3.1\lib\j2ee.jar" DemoHome.java
DemoHome.java:11: cannot resolve symbol
symbol : class Demo
location: interface ejb.demo.DemoHome
Demo create() throws RemoteException , CreateException;
^
1 error
Can someone please help.
+Pie Number of slices to send: Send
The compiler doesn't see your compiled Demo.class in the classpath. Currently the command-line you posted includes only the J2EE libs and not, for example, the current directory...
+Pie Number of slices to send: Send
It worked ...
Thanks a lot...
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 863 times.
Similar Threads
Cannot resolve Symbol (EJB)
EJB Home interface
Home & Remote interface
cann't understand this error plz help.
Compile time Error(EJB)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:05:17.