2

How am I supposed to be able to use the javax.crypto inside of my Bndtools project?

I'm trying to compile my project but it seems that Bnd is not able to find the javax.crypto library.

I'm using Eclipse Juno with Bndtools 2.2 and JDK 7

  • Please provide more information, for example show the bnd.bnd file and the specific error message. `javax.crypto` is part of the standard JRE libraries and there is normally no issue with using it. – Neil Bartlett Feb 08 '14 at 17:46
  • See also http://stackoverflow.com/a/20619342/23118 – hlovdal May 25 '14 at 12:39

1 Answers1

0

You need to ensure that the javax.crypto package is imported into your bundle definition. By default, only java.* packages are available go OSGi bundles/projects.

AlBlue
  • 23,254
  • 14
  • 71
  • 91
  • But this is done automatically by bnd(tools). So I don't think it's a runtime classloading issue due to a missing import. Then again the original poster still needs to give details of the error. – Neil Bartlett Feb 09 '14 at 19:57