• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error compiling ejb, first time prompt compile

 
Jesus Angeles
Ranch Hand
Posts: 2068
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Include j2ee.jar in your CLASSPATH. It will work.

-S.M.Rahman
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, didnt see ur msg early enough, i figured it myself, the hard way, i appreciate it
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic