I am facing probs to import .so file using PythonInterperter from Java.

From python:
$ python
Python 2.7.3 (default, Apr 10 2013, 06:20:15)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print cv2.__file__
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit

From Java:
PythonInterpreter ie = new PythonInterpreter();
ie.exec("import cv2");

$ javac InterperterExample.java
$java InterperterExample
Exception in thread "main" Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named cv2

But importing other modules like numpy works perfectly fine.

How to resolve this?