Stack guard exception while using OpenCV for java in eclipse- ubuntu 15.04
i have installed openCV 3.0.1 in ubuntu 15.04, 64 bit. trying to use opencv functions for image keypoint detection. Here is my java code
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
Mat blurredImage = new Mat();
when i compile it it gives me warning:
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
OpenJDK 64-Bit Server VM warning: You have loaded library /home/shoaib/opencv- 3.1.0/build/lib/libopencv_java310.so which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
and givs error on line where i initialize Mat
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat()J at org.opencv.core.Mat.n_Mat(Native Method) at org.opencv.core.Mat.<init>(Mat.java:24)
am new to opencv.can anyone guide how to fix it??
stack guard exception has resolved but it's giving following error still: java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat()J – how can i resolve it