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:\Pro gram Files\Blazix;.
javax.jar contains javax\ejb, which contains the classes.
Any ideas
Eoin.
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.
javax.jar contains javax\ejb, which contains the classes.
Any ideas
Eoin.
ASKER
D:\jbuilder5\jdk1.3\javax. jar;D:\Pro gram Files\Blazix;.
including the '.'
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?
jar -tf javax.ejb | find "javax.ejb"
Is there no j2ee.jar?
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.FileNotFoundExcept ion: javax.ejb (The system cannot find the file specified)
at java.io.FileInputStream.op en(Native Method)
at java.io.FileInputStream.<i nit>(FileI nputStream .java:64)
at sun.tools.jar.Main.run(Mai n.java:186 )
at sun.tools.jar.Main.main(Ma in.java:90 4)
I have no j2ee.jar, so I downloaded the javax folder.
I get the following error when I run your command- however should it be jar -tf javax.JAR instead of javax.EJB??
java.io.FileNotFoundExcept
at java.io.FileInputStream.op
at java.io.FileInputStream.<i
at sun.tools.jar.Main.run(Mai
at sun.tools.jar.Main.main(Ma
I have no j2ee.jar, so I downloaded the javax folder.
Doh sorry - typo!
Should have been
jar -tf javax.jar | find "javax.ejb"
Should have been
jar -tf javax.jar | find "javax.ejb"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks thomas. You have solved my problem, but it seems to have created another LOL
thanks again.
thanks again.
echo %CLASSPATH%