webcam-capture: Library 'OpenIMAJGrabber' was not loaded successfully

@sarxos Hi ! When i use your webcam-capture, i meet a problem

java.lang.RuntimeException: Library 'OpenIMAJGrabber' was not loaded successfully from file 'C:\Users\USER\AppData\Local\Temp\BridJExtractedLibraries7239214121169806436\OpenIMAJGrabber.dll' 
at org.bridj.BridJ.getNativeLibrary(BridJ.java:952) 
at org.bridj.BridJ.getNativeLibrary(BridJ.java:931) 
at org.bridj.BridJ.getNativeLibrary(BridJ.java:543) 
at org.bridj.cpp.CPPRuntime.newCPPInstance(CPPRuntime.java:652) 
at org.bridj.cpp.CPPRuntime$CPPTypeInfo.initialize(CPPRuntime.java:858) 
at org.bridj.cpp.CPPRuntime$CPPTypeInfo.initialize(CPPRuntime.java:785) 
at org.bridj.CRuntime$CTypeInfo.initialize(CRuntime.java:249) 
at org.bridj.BridJ.initialize(BridJ.java:1000) 
at org.bridj.NativeObject.<init>(NativeObject.java:49) 
at org.bridj.StructObject.<init>(StructObject.java:44) 
at org.bridj.cpp.CPPObject.<init>(CPPObject.java:52) 
at com.github.sarxos.webcam.ds.buildin.natives.OpenIMAJGrabber.<init>(OpenIMAJGrabber.java:64) 
at com.github.sarxos.webcam.ds.buildin.WebcamDefaultDriver$WebcamNewGrabberTask.handle(WebcamDefaultDriver.java:56) 
at com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.run(WebcamProcessor.java:61) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
at java.lang.Thread.run(Unknown Source) 
com.github.sarxos.webcam.WebcamException: java.util.concurrent.ExecutionException: com.github.sarxos.webcam.WebcamException: Cannot execute task 

Just the same problem like @hepin1989 https://github.com/ochafik/nativelibs4java/issues/364

And my OS is win7 ultimate But, not all the win7 can not work ,just one of mine throw this exception, i don`t know why. Could you help please ??

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 35 (17 by maintainers)

Commits related to this issue

Most upvoted comments

More thoughts - BridJ can also fail the load because of some libraries missing (not sure about this, need to clarify), so there is a tool called Dependency Walker which allows you to check if all DLL dependencies are available on your PC.

To find the OpenIMAJGrabber.dll you have to open webcam-capture-0.3.10-RC1.jar with e.g. WinRAR and go to the com/github/sarxos/webcam/ds/buildin/lib/win32 and extract OpenIMAJGrabber.dll. Then, when you have itn on your desktop, fire Dependency Walker and go to File / Open, choose extracted DLL and hit Open button.

untitled