question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't load library: /tmp/BridJExtractedLibraries978435834650156898/OpenIMAJGrabber.so System.load("/tmp/BridJExtractedLibraries978435834650156898/OpenIMAJGrabber.so")

See original GitHub issue

i working webcam sacanning in raspberry pi 3 , when i run program it gives : Native code library failed to load. java.lang.UnsatisfiedLinkError: Can’t load library: /tmp/BridJExtractedLibraries978435834650156898/OpenIMAJGrabber.so

while i used System.load(“/tmp/BridJExtractedLibraries978435834650156898/OpenIMAJGrabber.so”); but could not solved the problem , my dependencies are

    <dependencies>
        <dependency>
	    <groupId>com.google.zxing</groupId>
	    <artifactId>core</artifactId>
	    <version>3.2.1</version>
	</dependency>
	
      <dependency>
    <groupId>com.github.sarxos</groupId>
    <artifactId>webcam-capture-driver-v4l4j</artifactId>
    <version>0.3.12-SNAPSHOT</version>
</dependency>

	<dependency>
	    <groupId>com.google.zxing</groupId>
	    <artifactId>javase</artifactId>
	    <version>3.2.1</version>
	</dependency> 

        <dependency>
   <groupId>org.openimaj</groupId>
   <artifactId>core-video-capture</artifactId>
   <version>1.3</version>
</dependency>

        <dependency>
    <groupId>com.github.sarxos</groupId>
    <artifactId>webcam-capture</artifactId>
    <version>0.3.12-SNAPSHOT</version>
</dependency> 


<dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
       <version>1.7.5</version>
   </dependency>

   <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-log4j12</artifactId>
       <version>1.7.5</version>
   </dependency>


    </dependencies> 

   <repositories> 
 <repository>
	<id>Sonatype OSS Snapshot Repository</id>
	<url>http://oss.sonatype.org/content/repositories/snapshots</url>
</repository> 
 </repositories>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sarxoscommented, Oct 9, 2017

There is nothing bad in this log (except BUILD FAILURE at the end). The only problems are from BridJ demangler, but these are just a debug statements and can be ignored.

Did some crash occurred because I can’t see full log, it’s just cut in one moment:

INFO: No fields found in org.bridj.dyncallbacks.PointerToVoid_0 (maybe they weren't declared as public ?)

More things to check:

  • Do you have enough RAM free to start application? Is this on your PC or on RasPi. If this is on Pi then how much RAM do you have there?
  • Is the basic sample (without zxing) work fine?
  • Can you try running it from command line (not via mvn exec) and outside NetBeans?
  • Can you try bridj-0.6.3-SNAPSHOT instead of 0.7.0?
0reactions
sarxoscommented, Oct 13, 2017

Great. It’s then BridJ issue. I’m closing this ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.loadLibrary() gives java.lang.UnsatisfiedLinkerError
dll from C:\libraries, I am still getting this same error. Is there any reason why System.load is finding the .dll in a place...
Read more >
System.load() and java.lang.UnsatisfiedLinkError — oracle-tech
Hi All, I'm forced to dynamically load dll libraries into the jvm (can't ... If so, then I can toggle between _[System.load("c:/path/to/nativeLib.dll")]_ ...
Read more >
How to Handle the UnsatisfiedLinkError Runtime Error in Java
Java loads native libraries at runtime by invoking the System.load() or the System.loadLibrary() method. The main difference between the two ...
Read more >
AdminServer fails to start due to "Error accessing message ...
Dependency tool 'ldd' doesn't report any missing libraries but indicates that libjutil.so is being loaded from /usr/lib directory
Read more >
How to Load a Java Native/Shared Library (.so) by ... - Chilkat
Call System.load to load the .so from an explicitly specified absolute path. Copy the shared library to one of the paths already listed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found