wood burning stoves 2.0*
The moose likes BEA/Weblogic 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
JavaRanch » Java Forums » Products » BEA/Weblogic
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
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi,
run the setEnv script before compiling the ejb's, it'll put weblogic classes under classpath and u problably won't get this errors anymore.
in time: the setEnv is placed under any domain u create for weblogic 6, 7 or 8...
regards.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error Compiling EJBs from command prompt
 
Similar Threads
Basic question, please help me guys
Error Compiling EJBs from command prompt
can't import javax.ejb.*;
package does not exist problem
EJB jar files?