Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

getting compiler error

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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: 40035
809
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • 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.
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic