Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 981319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:31:27+00:00 2026-05-16T04:31:27+00:00

The company I work for is wary of Android app development because the default

  • 0

The company I work for is wary of Android app development because the default cryptography library, Bouncy Castle, is not FIPS-140 certified. Nothing I can do to change their minds or policies.

I’m wondering what options I have for installing (or at least bundling) SunJCE with my app.

For one, I can’t find where I would download the latest version of this jar. I tried grabbing the jce jar from my desktop and setting it as an internal jar in my Android project and received this amusing, if ominous, message:

Attempt to include a core class
(java.* or javax.*) in something other
than a core library. It is likely that
you have attempted to include in an
application the core library (or a
part thereof) from a desktop virtual
machine. This will most assuredly not
work. At a minimum, it jeopardizes the
compatibility of your app with future
versions of the platform. It is also
often of questionable legality.

If you really intend to build a core
library — which is only appropriate
as part of creating a full virtual
machine distribution, as opposed to
compiling an application — then use
the “–core-library” option to
suppress this error message.

If you go ahead and use
“–core-library” but are in fact
building an application, then be
forewarned that your application will
still fail to build or run, at some
point. Please be prepared for angry
customers who find, for example, that
your application ceases to function
once they upgrade their operating
system. You will be to blame for this
problem.

If you are legitimately using some
code that happens to be in a core
package, then the easiest safe
alternative you have is to repackage
that code. That is, move the classes
in question into your own package
namespace. This means that they will
never be in conflict with core system
classes. If you find that you cannot
do this, then that is an indication
that the path you are on will
ultimately lead to pain, suffering,
grief, and lamentation.

I’m not one for pain, suffering, grief, OR lamentation, so I’d like to know the proper way to go about this task, provided it’s something I should attempt at all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:31:27+00:00Added an answer on May 16, 2026 at 4:31 am

    You are not going to be able to import java.* or javax.* classes, due to the compiler error you encountered. Following their instructions should work, but changing the packages for something the size of JCE may be significant, and I don’t know if the result would still qualify as FIPS-140. Plus, if JCE is implemented in pure Java, it may be slow on Android. And unless the JCE is from the GPL’d version of Java, or some other open source implementation, the licensing issue the error message hints at is relevant.

    There are other FIPS-140 encryption libraries available, such as NSS, that have Java bindings, and others that you could probably write Java bindings for. It is possible you could get one of those working with the NDK to run on Android.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The company I work for has outsourced development of an iPhone app to another
The company I work for only has standard edition, and can not afford a
The company I work for created an app, we uploaded it to the app
The company I work for has started using Confluence for documenting software development and
In a company I work for we have an app that shows TV-programs. Users
The company I work for exclusively uses Clearcase. I feel it is not worth
The web design company I work for has a development side, and a published
the company I work for has a web-based user interface which paying clients log
The company I work for is looking for a reporting solution with the following
The company I work for is looking to implement a caching solution. We have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.