Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to resolve class javax.annotation.security.DeclareRoles

 
Siegfried Heintze
Ranch Hand
Posts: 408
  • 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: 408
  • 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: 10447
227
IntelliJ IDE Ubuntu
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic