ammit2 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Error In the provided attachmet project for the taking pics #445

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.just take photos form the webcam 
2.
3.

What is the expected output? What do you see instead?
only error what i see 

What version of the product are you using? On what operating system?
window 7 

Please provide any additional information below.
this is the error which i am getting while running the project 

Exception in thread "main" java.lang.UnsatisfiedLinkError: no 
jniopencv_objdetect in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:701)
    at com.googlecode.javacpp.Loader.load(Loader.java:578)
    at com.googlecode.javacpp.Loader.load(Loader.java:532)
    at com.googlecode.javacv.cpp.opencv_objdetect.<clinit>(opencv_objdetect.java:91)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at com.googlecode.javacpp.Loader.load(Loader.java:553)
    at snappics.SnapPics.<init>(SnapPics.java:37)
    at snappics.SnapPics.main(SnapPics.java:73)
Caused by: java.lang.UnsatisfiedLinkError: no opencv_objdetect246 in 
java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:701)
    at com.googlecode.javacpp.Loader.load(Loader.java:569)
    ... 7 more
Java Result: 1

Original issue reported on code.google.com by HBKangor...@gmail.com on 18 Mar 2014 at 7:56

Attachments:

GoogleCodeExporter commented 8 years ago
Could you please try again with JavaCV 0.7? Thank you

Original comment by samuel.a...@gmail.com on 18 Mar 2014 at 10:09

GoogleCodeExporter commented 8 years ago
Exception in thread "main" java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at com.googlecode.javacpp.Loader.load(Loader.java:553)
    at face.tracking.FaceTracker.<init>(FaceTracker.java:38)
    at face.tracking.FaceTracker.main(FaceTracker.java:72)
Caused by: java.lang.IllegalStateException: Can't overwrite cause
    at java.lang.Throwable.initCause(Throwable.java:320)
    at com.googlecode.javacpp.Loader.load(Loader.java:581)
    at com.googlecode.javacpp.Loader.load(Loader.java:532)
    at com.googlecode.javacv.cpp.opencv_objdetect.<clinit>(opencv_objdetect.java:91)
    ... 5 more
Java Result: 1

now its showing me this cant figure out what to do 

Original comment by HBKangor...@gmail.com on 18 Mar 2014 at 10:57

GoogleCodeExporter commented 8 years ago
This error has been fixed in JavaCV 0.7. Please try again with JavaCV 0.7.

Original comment by samuel.a...@gmail.com on 18 Mar 2014 at 11:21

GoogleCodeExporter commented 8 years ago
i did try with JavaCV 0.7 
But the error is still there.

Original comment by HBKangor...@gmail.com on 18 Mar 2014 at 11:23

GoogleCodeExporter commented 8 years ago
No, you are not. JavaCPP 0.7 does not have any statement at Loader.java:581:
http://code.google.com/p/javacpp/source/browse/src/main/java/com/googlecode/java
cpp/Loader.java?name=0.7#581
or at Loader.java:532:
http://code.google.com/p/javacpp/source/browse/src/main/java/com/googlecode/java
cpp/Loader.java?name=0.7#532
So, there can be no exceptions thrown from those lines, and you cannot be using 
JavaCV 0.7. Please upgrade to JavaCV 0.7, and this should fix your problem!

Original comment by samuel.a...@gmail.com on 18 Mar 2014 at 12:00

GoogleCodeExporter commented 8 years ago
Sorry for the trouble. 
& 
thanks for the Reply's.

I solved problem by setting write environment variable
that Path in system.

Original comment by HBKangor...@gmail.com on 22 Mar 2014 at 4:58

GoogleCodeExporter commented 8 years ago
Great! Thanks for the feedback

Original comment by samuel.a...@gmail.com on 23 Mar 2014 at 1:13