This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes class compile err,pls help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "class compile err,pls help" Watch "class compile err,pls help" New topic
Author

class compile err,pls help

dave hu
Greenhorn

Joined: Dec 24, 2004
Posts: 1
Hi,
I just write very simply code for session bean,but when I compile it,error happened.following is output:
D:\helloworldproject\src>javac -d ../classes helloworld/*.java
helloworld/hello.java:5: package javax.ejb does not exist
import javax.ejb.*;
^
helloworld/hello.java:8: package javax.ejb does not exist
public interface hello extends javax.ejb.EJBObject {
^
helloworld/helloBean.java:3: package javax.ejb does not exist
import javax.ejb.*;
^
helloworld/helloBean.java:5: cannot resolve symbol
symbol : class SessionBean
location: class helloworld.helloBean
public class helloBean implements SessionBean {
^
helloworld/helloBean.java:7: cannot resolve symbol
symbol : class SessionContext
location: class helloworld.helloBean
private SessionContext ctx;
^
helloworld/helloBean.java:29: package javax.ejb does not exist
public void setSessionContext(javax.ejb.SessionContext ctx){
^
helloworld/helloHome.java:3: package javax.ejb does not exist
import javax.ejb.*;
^
helloworld/helloHome.java:7: cannot resolve symbol
symbol : class EJBHome
location: interface helloworld.helloHome
public interface helloHome extends EJBHome {
^
helloworld/helloHome.java:9: cannot resolve symbol
symbol : class CreateException
location: interface helloworld.helloHome
public hello create() throws CreateException,RemoteException;
^
9 errors
I think it seems class path,I installed j2sdke1.3.1 in "D" dirve and set CLASSPATH=D:\j2sdkee1.3.1\lib, anything wrong?
Pls help me,TKS
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Originally posted by dave hu:
CLASSPATH=D:\j2sdkee1.3.1\lib
You can't point to directories containing JAR files; you have to specify each JAR file directly.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class compile err,pls help
 
Similar Threads
error compiling ejb, first time prompt compile
please help me to resolve this problem
having issues with compile for AdviceBean from HF EJB
error in compiling, ejb
AdviceBean - compile time erorr