The moose likes EJB and other Java EE Technologies and the fly likes classpath errors - need urgent help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "classpath errors - need urgent help!" Watch "classpath errors - need urgent help!" New topic

classpath errors - need urgent help!

Hemal Shah

Joined: Dec 04, 2001
Posts: 8
I am tring to compile EJB's and *seem* to have a classpath problem.
Here is my classpath:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C;\Java\jdk1.3.1_01\bin;C:\Individualproject\JBoss_Tomcat\JBoss-2.2.2_Tomcat-3.2.2\jboss\lib\ext\ejb.jar;C:\Individual project\JBoss_Tomcat\JBoss-2.2.2_Tomcat-3.2.2\jboss\lib\ext\ejb2.0.jar;C:\Individualproject\Jakarta\jakarta-ant-1.3\bin;C:\Individualproject\JBoss_Tomcat\JBoss-2.2.2_Tomcat-3.2.2\t omcat\bin;C:\Individualproject\Jakarta\jakarta-ant-1.3\lib\ant.jar;C;\Java\jdk1.3.1_01\lib\tools.jar
When I attemt to compile I get an error saying that javax.ejb cannot be found.
I have located this package to be in "...\jboss\lib\ext\ejb2.0.jar" as stated in the classpath above but still get errors!
Any ideas?
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
Try to copy the jar file in to another directory and try to put it classpath. Yoy amy even try to change the name of the jar file if you feel. This is just a round about solution. Your class seems to be fine and should not be any problem.
Ramdhan YK

Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
I agree. Here's the link: http://aspose.com/file-tools
subject: classpath errors - need urgent help!
Similar Threads
program assignments won't run anymore
Trying to find javax, to compile Tomcat servlet
Problem setting enviromental variables
Problem in building the application