geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axiez <lesai...@gmail.com>
Subject Re: ejb compilation without IDE
Date Thu, 25 Dec 2008 10:24:57 GMT

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-tp21159403s134p21166670.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message