• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

getting compiler error

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi i m a beginner in J2ee.When i comiple, i get the following error

C:\j2eetutorial\examples>ant converter
Buildfile: build.xml

init:

converter:
[javac] Compiling 4 source files to C:\j2eetutorial\examples\build\ejb\conve
rter
[javac] C:\j2eetutorial\examples\src\ejb\converter\Converter.java:10: packag
e javax.ejb does not exist
[javac] import javax.ejb.EJBObject;
[javac] ^
[javac] C:\j2eetutorial\examples\src\ejb\converter\Converter.java:14: cannot
resolve symbol
[javac] symbol : class EJBObject
[javac] location: interface Converter
[javac] public interface Converter extends EJBObject {
[javac] ^
[javac] C:\j2eetutorial\examples\src\ejb\converter\ConverterBean.java:11: pa
ckage javax.ejb does not exist
[javac] import javax.ejb.SessionBean;
[javac] ^
[javac] C:\j2eetutorial\examples\src\ejb\converter\ConverterBean.java:12: pa
ckage javax.ejb does not exist
[javac] import javax.ejb.SessionContext;
[javac] ^
[javac] C:\j2eetutorial\examples\src\ejb\converter\ConverterBean.java:15: ca
nnot resolve symbol
[javac] symbol : class SessionBean
[javac] location: class ConverterBean
[javac] public class ConverterBean implements SessionBean {
[javac] ^
[javac] C:\j2eetutorial\examples\src\ejb\converter\ConverterBean.java:37: ca
nnot resolve symbol
[javac] symbol : class SessionContext
[javac] location: class ConverterBean
[javac] public void setSessionContext(SessionContext sc) {}
[javac] ^
[javac] C:\j2eetutorial\examples\src\ejb\converter\ConverterHome.java:12: pa
ckage javax.ejb does not exist
[javac] import javax.ejb.CreateException;
[javac] ^
[javac] C:\j2eetutorial\examples\src\ejb\converter\ConverterHome.java:13: pa
ckage javax.ejb does not exist
[javac] import javax.ejb.EJBHome;
[javac] ^
[javac] C:\j2eetutorial\examples\src\ejb\converter\ConverterHome.java:15: ca
nnot resolve symbol
[javac] symbol : class EJBHome
[javac] location: interface ConverterHome
[javac] public interface ConverterHome extends EJBHome {
[javac] ^
[javac] C:\j2eetutorial\examples\src\ejb\converter\ConverterHome.java:17: ca
nnot resolve symbol
[javac] symbol : class CreateException
[javac] location: interface ConverterHome
[javac] Converter create() throws RemoteException, CreateException;
[javac] ^
[javac] 10 errors

BUILD FAILED

C:\j2eetutorial\examples\build.xml:89: Compile failed, messages should have been
provided.

Total time: 11 seconds
can anybody hel me.
 
author & internet detective
Posts: 41125
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Faisal,
Check that j2ee.jar is in your classpath and is in that location on your hard drive. The error message indicates that the jar cannot be found.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic