Compilation problem!

Dear Friends, I am new to EJB technology,and i am using HF for EJB. in the first chapter when i try to compile the 3 java files of the EJB, I got errors in compilation like : package javax.ejb does not exist import javax.ejb.*; ^

I use JDK 1.4, I have tried to put j2ee.jar in the classpath but no use,i have tried to put the jar file in /jre/lib/ext ,it compiled fine,but when i wanted to start the server,i got the following error: Warning: This J2EE SDK release is designed to run on J2SE 1.3 No local string for j2ee.listenPort J2EE server listen port: 1050 No local string for j2ee.naming Naming service started: 1050 No local string for enterprise.log.logging.serverversion.started No local string for enterprise.log.using.vm.name.version.from No local string for enterprise.log.vm's.classpath No local string for enterprise.log.j2ee.homedirectory No local string for enterprise.log.logging.serverversion.started No local string for enterprise.log.using.vm.name.version.from No local string for enterprise.log.vm's.classpath No local string for enterprise.log.j2ee.homedirectory No local string for idle_resource_threshold_error No local string for binding.datasource

No local string for binding.datasource

No local string for binding.datasource

No local string for binding.datasource

No local string for binding.datasource

No local string for binding.datasource

java.lang.ClassNotFoundException: COM.cloudscape.core.RemoteXaDataSource at java.net.URLClassLoader$1.run(URLClassLoader.java:199) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at com.sun.enterprise.repository.JdbcXAResource.createDataSource(JdbcXAR esource.java:69) and so on...

Hi Rose i want to say you that set enviroment then try to compile that java programme .Actually ypu are beginer so i am being explain step by step suppose your java programme in C drive folder name rajesh then first copy "setEnv" from your Application server & put it in rajesh folder after that open setEnv and add rajesh folder in classpath add C:\rajesh; After that go on command prompt write cd c:/rajesh after that set environment for this setEnv on command prompt now you can use javac to compile your java programme.Now it will not display such error

i am expain all the process and i think it will help all those freind which are beginer for ejb that you will not get any problem that i you r beginer..you can deploy programme as below 1) write all java programme like Remote interface home interface Bean class in case entity primary key class etc 2)Make Deployment descriptor which is inside META-INF for this u can use ant command which i have explain below

3)Make jar file & corresponding skeleton for this use command on command prompt