File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes urgently Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "urgently Help" Watch "urgently Help" New topic
Author

urgently Help

min zhang
Greenhorn

Joined: Feb 21, 2005
Posts: 7
i am a newbie in ejb.
use blazix server in winxp.
i got problem in compiling files.
error: javax.ejb doesnot exist
my classpath: C:\Blazix\blazix.jar;C:\Sun\Appserver\jdk\bin;
path C:\Blazix
i installed the blazix in C:
and installed j2ee platform in C:
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

j2ee.jar needs to be in your classpath. Make sure it is there.

Also a word of advice - posting quetions with topic names including the word "urgent" tends not to go down too well here.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
min zhang
Greenhorn

Joined: Feb 21, 2005
Posts: 7
the blazix.jar should have the same functionality with j2ee.jar
and also i installed the j2eeplatform
i included the classpath C:\Sun\Appserver\lib\j2ee.jar
but it doesnt work at all
any idea about that enigma
thanks first
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

j2ee.jar (or whatever jar you are using which includes it) must not be in your classpath, otherwise the package javax.ejb would have been found by the compiler. Double check your classpath (watch out for spaces in there - somethimes these cause problems). Check your are using the classpath you expect when you try to compile your ejbs.
min zhang
Greenhorn

Joined: Feb 21, 2005
Posts: 7
I swear to the GOD
my installation of j2ee platform is from sun
j2eesdk1_4
blazix is my application server
i have attached my clips of system
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
In order to check the class path normally i'll use a javap command and check it out. Likewise Try & check the ClassPath check , whether you have classpath set to appropriate directories that you have in your PC. Check whether the seperator ";" or ":" is placed in correct place.
[ February 21, 2005: Message edited by: Srinivasa Raghavan ]

Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
min zhang
Greenhorn

Joined: Feb 21, 2005
Posts: 7
thank u everybody.
i think i found the solution
but it is quite complicated

i installed j2ee1.4 version for winxp
now i copy the Sun\Appserver\lib\*.*
to the Sun\Appserver\jdk\jre\lib\ext\
and my classpath
c:\blazix\blazix.jar; C:\Sun\Appserver\lib\jdk\jre\lib\ext\j2ee.jar
now it works
these kind of stuffs always occupy us most of the time during the programming
document always has some gap with the real practise.
i wish my experience can benefit the followers
thank u very buddies
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30916
    
158

"newbie ejb",
We're pleased to have you here with us in the EJB forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks,
Jeanne
Forum Bartender


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: urgently Help