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 150967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:22:29+00:00 2026-05-11T09:22:29+00:00

I have created a jar file to load a native library ( using System.loadlibrary()

  • 0

I have created a jar file to load a native library ( using System.loadlibrary() ) and configured this as a shared library within WebSphere ( v6.1 ). The server has to run with Java 2 enabled ( it’s the law … )

When I try to access the library I can see that the correct classes are being loaded from my jar file, but the attempt to load the native library gives me the following Security exception : –

  Permission:        loadLibrary.gbif : Access denied (java.lang.RuntimePermission loadLibrary.gbif)   Code:       com.dave.nativelibrary.NativeLibraryLoader  in  {file:/hosting/apps/D03-dave-dev/lib/NativeLibraryLoader.jar}    Stack Trace:  java.security.AccessControlException: Access denied (java.lang.RuntimePermission loadLibrary.gbif)     at java.security.AccessController.checkPermission(AccessController.java:104)     at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)     at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:189)     at java.lang.SecurityManager.checkLink(SecurityManager.java:833)     at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:917)     at java.lang.System.loadLibrary(System.java:453)     at com.dave.nativelibrary.NativeLibraryLoader.(NativeLibraryLoader.java:21)  

— snip —

I’m not really sure what I’m doing – so I had a couple of attempts to put the following in to my was.policy file

permission java.lang.RuntimePermission ‘loadLibrary.gbif’;

I tried this in both the application and jars section, but it had no beneficial effect.

Can anyone shed any light on what I need to do here?

Thanks

Dave

  • 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. 2026-05-11T09:22:30+00:00Added an answer on May 11, 2026 at 9:22 am

    Instead of wrapping your native libs inside of a jar lib. Have you tried defining your native code as a shared native lib inside of websphere?

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

Sidebar

Ask A Question

Stats

  • Questions 144k
  • Answers 144k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The problem here is that nltk is attempting to do… May 12, 2026 at 8:34 am
  • Editorial Team
    Editorial Team added an answer Distinguish between the actual pieces of code (classes) and the… May 12, 2026 at 8:34 am
  • Editorial Team
    Editorial Team added an answer You may use FTS(3) to loop through all files in… May 12, 2026 at 8:34 am

Related Questions

I am working on a Java project that I want to deliver to my
My application uses JDBC database drivers. I load these from a jar file, db2jcc.jar
We have an ant build script for a project we're developing for a PDA.
I looked at the documentation and all it says is to create a servlet...

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.