This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to resolve class javax.annotation.security.DeclareRoles

 
Siegfried Heintze
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I resolve this error?
What do I need to add to my pom.xml to include the required libraries?

Actually, I'm compiling this with groovy 2.0 -- is that relevant?

 
Siegfried Heintze
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
problem solved with this line of groovy code:



In otherwords, this was not a groovy or java syntax problem or installation problem. It was a classpath/pom.xml problem. Apparently javax classes need to be explicitly downloaded. Hmmm... News to me!

Thanks
Siegfried
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax classes aren't always part of the JRE. This thread might help understand the difference http://www.coderanch.com/t/466100/GUI/java/javax-stand
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic