Stack guard exception while using OpenCV for java in eclipse- ubuntu 15.04

asked 2016-01-26 07:32:18 -0500

Shoaib Raza gravatar image

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


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/ 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>(

am new to opencv.can anyone guide how to fix it??

edit retag flag offensive close merge delete


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

Shoaib Raza gravatar imageShoaib Raza ( 2016-01-27 04:37:27 -0500 )edit