Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

calculator example program

View: New views
2 Messages — Rating Filter:   Alert me  

calculator example program

by vesa n :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I'm trying to use annotation in calculator slsb example.

I have this problem

package javax.annotation does not exist

I'm compiling the program with maven and I add this line to Calculator.java

import javax.annotation.PostConstruct;

 - Vesa

Re: calculator example program

by Shawn Jiang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you need to check if your maven pom.xml has a dependency to this:

   <groupId>org.apache.geronimo.specs</groupId> 
    <artifactId>geronimo-annotation_1.0_spec</artifactId> 
    <version>1.1.1</version> 


On Tue, Jun 23, 2009 at 6:14 PM, vesa norrman <vesbula@...> wrote:
javax.annotation.PostConstruct



--
Shawn
-Shawn