Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Unable to compile home interface file  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Goldy John
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It worked ...
Thanks a lot...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!