Might be some elementary mistake by me. Anyway I copied the jar file into Tomcat directory and compiled.
axiez wrote: > > I added the jar in classpath, restarted system and tried to compile. I > still got the same compilation error. I am wondering why. I viewed the > expanded jar file and found it had all required class files such as > Remote, Sateless etc. > > Kevan Miller wrote: >> >> >> On Dec 24, 2008, at 8:34 AM, axiez wrote: >> >>> >>> I have Apache Geronmo with Tomcat installed on windows. I have coded >>> a simple >>> bean class and business interface and want to compile them without >>> using any >>> IDE? I tried javac but got the compilation error "package javax.ejb >>> does not >>> exist". Any suggestions? >> >> You need the Java EE EJB spec jar. If building using maven, you could >> add the following dependency to your pom: >> >> <dependency> >> <groupId>org.apache.geronimo.specs</groupId> >> <artifactId>geronimo-ejb_3.0_spec</artifactId> >> <scope>provided</scope> >> </dependency> >> >> For plain old javac, you'll need the following jar on your classpath: >> >> <geronimo-home>/repository/org/apache/geronimo/specs/geronimo- >> ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.jar >> >> --kevan >> >> >> > > -- View this message in context: http://www.nabble.com/ejb-compilation-without-IDE-tp21159403s134p21167367.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
