JavaCracker
Programmer
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?
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?