"package javax.ejb does not exist"- a classpath problem.

I have checked the net and 99% of the time it is a classpath problem- but I still cannot fix it!

I am getting this with a run a preconfigured build.cmd file.
'package javax.ejb does not exist'

classpath = D:\jbuilder5\jdk1.3\javax.jar;D:\Program Files\Blazix;.

javax.jar contains javax\ejb, which contains the classes.

Any ideas
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Please post the output of this command from the command line:

EoinbnAuthor Commented:
D:\jbuilder5\jdk1.3\javax.jar;D:\Program Files\Blazix;.

including the '.'
The EJB classes may not be in javax.jar. Post the output of

jar -tf javax.ejb | find "javax.ejb"

Is there no j2ee.jar?
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

EoinbnAuthor Commented:
I assume I should be in the directory that javax.jar is in.
I get the following error when I run your command- however should it be jar -tf javax.JAR instead of javax.EJB??

java.io.FileNotFoundException: javax.ejb (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:64)
        at sun.tools.jar.Main.run(Main.java:186)
        at sun.tools.jar.Main.main(Main.java:904)

I have no j2ee.jar, so I downloaded the javax folder.
Doh sorry - typo!

Should have been

jar -tf javax.jar | find "javax.ejb"
EJB's need j2ee.jar, like CEHJ mentioned above.
The reason u dont have a j2ee.jar is that JBuilder EE  comes with Tomcat which is just a servlet container. So although it contains jar files to compile servlets, it does not contain j2ee.jar needed to compile ejbs.

j2ee.jar will be available in any application server u have installed to run ur ejbs. If u haven't as yet u may download and install  j2ee RI from Sun's site (or any other server for htat matter) .
In the lib directory within ur installation directory u'll find j2ee.jar , set classpath to it and everythign will be fine.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EoinbnAuthor Commented:
Thanks thomas. You have solved my problem, but it seems to have created another LOL

thanks again.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.