Discussion Locked

EJB Deploment on J2EE 1.2.1 Server

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Would like to know how to Deploy EJB Components on a J2EE 1.2.1 Server. ( The problem is that the java compiler was unable to find the javax.ejb package ). Would like to know the settings before compiling a EJB Component.

1 reply

by thaker_bhavesh

Dear

Check the classpath. I am sure that you doesn't set the j2ee.jar file in your classpath.

I am giving here the classpath and path setting for the any J2EE Server version of SUN.

On Windows NT/2000/XP
================

set JAVA_HOME=X:\j2sdk1.4.2
set J2EE_HOME=X:\j2sdkee1.4
set path=X:\j2sdk1.4.2\bin;X:\j2sdk1.4.2\jre\bin;X:\j2sdkee1.4\bin;%PATH%
set classpath=X:\j2sdk1.4.2\lib\*.jar;X:\j2sdk1.4.2\jre\lib\*.jar;X:\j2sdkee1.4\lib\j2ee.jar;D:\j2sdkee1.4\lib\system\cloudscape.jar;%CLASSPATH%

where X:\ = is your drive letter where you have installed the jdk and j2ee server.

It will always find the javax.ejb package.
this package is in j2ee.jar file that must be in your classpath settings as i stated here.
As I shown in classpath if you want to use cloudscape database you have to include cloudscape.jar in your classpath.

cheer up man.

I will work.

you can contact me at thaker_bhavesh@yahoo.com
for further information.

Bhaveshkumar Thaker

This discussion is closed to new replies.