Link to home
Start Free TrialLog in
Avatar of Eoinbn
Eoinbn

asked on

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

Hey.
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.
error:
'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
Eoin.
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

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

echo %CLASSPATH%
Avatar of Eoinbn
Eoinbn

ASKER

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?
Avatar of Eoinbn

ASKER

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"
ASKER CERTIFIED SOLUTION
Avatar of thomas908
thomas908

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eoinbn

ASKER

Thanks thomas. You have solved my problem, but it seems to have created another LOL

thanks again.