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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:18:21+00:00 2026-06-01T01:18:21+00:00

I’m making a program use JNI to call some native directives. My code is:

  • 0

I’m making a program use JNI to call some native directives. My code is:System.loadLibrary("poc_NativeShellExecutor");

When I run the code, I got the exception:

Caused by: java.lang.UnsatisfiedLinkError: no poc_NativeShellExecutor in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)

I check the java.library.path and I’m sure I do put the poc_NativeShellExecutor.dll in C:\Windows\System32.
Here is some info of my system:

Java version: 1.7.0_03, vendor: Oracle Corporation
Java home: E:\Program Files (x86)\Java\jdk1.7.0_03\jre
Default locale: en_US, platform encoding: GBK
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

Could u please give me some help?

  • 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-06-01T01:18:23+00:00Added an answer on June 1, 2026 at 1:18 am

    This is not the solution, but additional data, that I hope can help to find one.

    I have the same issue as the OP.

    My system is Windows7 Ultimate x64 SP1.
    I run my 32-bit test_x86.dll using the 32-bit jvm 1.6.0_29.

    I’ve tried to place test_x86.dll in the following folders:

    C:\
    C:\Windows
    C:\Program Files (x86)
    

    and it works: my test_x86.dll is successfully loaded.

    But if I place my dll into

    C:\Windows\System32
    

    I get the exception:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: no test_x86 in java.library.path
    

    I change my java.library.path each time before trying to load the dll, so it always starts with the corresponding directory:

    java.library.path = C:/;C:\Program Files (x86)\Java\jre6\bin; ...
    java.library.path = C:/Windows;C:\Program Files (x86)\Java\jre6\bin; ...
    java.library.path = C:/Program Files (x86);C:\Program Files (x86)\Java\jre6\bin; ...
    java.library.path = C:/Windows/System32;C:\Program Files (x86)\Java\jre6\bin; ...
    

    I also tried to use the default java.library.path (that contains C:\Windows\System32 by default) with test_x86.dll in C:\Windows\System32. No luck: it also leads to the exception above.

    I always have the single copy of test_x86.dll in folders that are in the java.library.path, i.e. only one of the folders contain that file at a time.

    Conclusion:

    It seems that in Windows 7 x64 the C:/Windows/System32 have some tricky restrictions.

    Earlier on my Windows XP 32-bit machine, I never warried about C:\Windows\System32 folder and java.library.path changes. I’ve simply used the System.loadLibrary("test_x86"); call with test_x86.dll in that folder, and it always worked.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I would like to run a str_replace or preg_replace which looks for certain words

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.