Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javac ejb with classpath problem?

Status
Not open for further replies.

JavaCracker

Programmer
Apr 22, 2003
2
US
I am developing enterprise beans with openejb and have installed it fine. When I try to compile the HelloWorld client code from
using command prompt javac I get 4 errors: basically saying that it cannot interperet my beans HelloHome and HelloObject. (although it compiles in NetBeans) This makes me think that it's a classpath problem. My OS is Win2000. I have jdk and j2ee in my classpath and path env var.... it should work. The beans compiled with javac fine adn are jared. I got HelloWorld to compile and then run using code from the openejb site
javac -d . -classpath .;%OPENEJB_HOME%/lib/ejb-1.0.jar;%OPENEJB_HOME%/lib/jndi_1.2.1.jar org\acme\HelloWorld.java

shouldn't those jars already be in my classpath with the j2ee installation? Why does it compile with that and not just javac org\acme\HelloWorld.java???? Will I always have to specify that classpath during development?
 
Usually in development on windows, I set up the classpath under the environment variable. for instance, to set up MS SQL Server 2000 JDBC Driver :-

JDBC_CLASS D:\MSJDBC\lib\mssqlserver.jar;

CLASS_PATH .;%JDBC_CLASS%;

It saves a lot of man hours and weekend too :) Make sure you reboot the machine to be sure the changes is taking effect - just to be save.


~za~
You can't bring back a dead thread!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top