File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Error Compiling EJBs from command prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Error Compiling EJBs from command prompt" Watch "Error Compiling EJBs from command prompt" New topic
Author

Error Compiling EJBs from command prompt

Srinivas Mupparapu
Greenhorn

Joined: Feb 12, 2004
Posts: 14

Hi All,
While compiling EJB classes from command prompt I am getting these errors:
package javax.ejb does not exist
cannot resolve symbol EJBObject
and so on.
I beleive this means necessary jar files containing these package/classes are missing in the CLASSPATH variable.
I have opened all the jar files that are under my J2EE installation directory but could not find one that has javax.ejb package in it.
As someone adviced I also tried running setEnv.bat file. But it did not help.
Any help is greatly appreciated.
Thank you,
Srini
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
When you install J2EE on your 'puter, you will have a jar file named "j2ee.jar" I belive in the main directory, not in the lib one.
Including the j2ee.jar file in your classpath will relieve your worries. If it ain't there, look around a bit. I'm on a j2ee 1.4 on windows, and it's sitting right there if I remember correctly.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error Compiling EJBs from command prompt