aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes error compiling ejb, first time prompt compile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "error compiling ejb, first time prompt compile" Watch "error compiling ejb, first time prompt compile" New topic
Author

error compiling ejb, first time prompt compile

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2061
hello,

i just installed j2ee 1.3.1 and j2se sdk 1.4

now im trying to compile, first time after installation, but having error

javac cant seem to find javax.ejb package

most likely problem on paths, but i cant find javax in any folder

comments please on what i have to do....

currently, my env vars are
---
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\j2sdk1.4.2_08\bin
java_home=c:\j2sdk1.4.2_08
j2ee_home=c:\j2sdkee1.3.1
---


heres the dump

---
C:\angeles jesus mobile\home laptop\learning java scbcd\head first book\work\pro
jects\advice\src>javac -d ../classes headfirst/*.java
headfirst/Advice.java:3: package javax.ejb does not exist
import javax.ejb.*;
^
headfirst/Advice.java:6: cannot resolve symbol
symbol : class EJBObject
location: interface headfirst.Advice
public interface Advice extends EJBObject {
^
headfirst/AdviceBean.java:3: package javax.ejb does not exist
import javax.ejb.*;
^
headfirst/AdviceBean.java:5: cannot resolve symbol
symbol : class SessionBean
location: class headfirst.AdviceBean
public class AdviceBean implements SessionBean {
^
headfirst/AdviceBean.java:22: cannot resolve symbol
symbol : class SessionContext
location: class headfirst.AdviceBean
public void setSessionContext(SessionContext ctx) {
^
headfirst/AdviceHome.java:3: package javax.ejb does not exist
import javax.ejb.*;
^
headfirst/AdviceHome.java:6: cannot resolve symbol
symbol : class EJBHome
location: interface headfirst.AdviceHome
public interface AdviceHome extends EJBHome {
^
headfirst/AdviceHome.java:8: cannot resolve symbol
symbol : class CreateException
location: interface headfirst.AdviceHome
public Advice create() throws CreateException, RemoteException;
^
8 errors
---
[ June 11, 2005: Message edited by: Jesus Angeles ]
Mujibur Rahman
Greenhorn

Joined: Oct 08, 2003
Posts: 15
Include j2ee.jar in your CLASSPATH. It will work.

-S.M.Rahman
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2061
thanks, didnt see ur msg early enough, i figured it myself, the hard way, i appreciate it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error compiling ejb, first time prompt compile