Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting compiler error

 
faisal siraj
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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34423
347
Eclipse IDE Java VI Editor
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic