Question: I am trying to use [SVMLight](http://svmlight.joachims.org/) from Java, using the [JNI wrapper on this page](http://www.mpi-inf.mpg.de/~mtb/):

```
  static {
    System.loadLibrary("lib/JNI_SVM-light-6.01/lib/svmlight");
  }

```

I get the following error:

> 
> ... lib\JNI\_SVM-light-6.01\lib\svmlight.dll: Can't load IA 32-bit .dll
>  on a AMD 64-bit platform
> 
> 
> 

Can I solve this by recompiling the .dll for 64 bit? **How would I go about doing this?** Is there some other workaround I can use? SVMLight makes the C source code available.

Answer: 
Go to

Project properties >> Run >> VM options

and put this address:

```
-Djava.library.path="C:\opencv\build\java\x64"

```
My windows laptop has both the clients 32 & 64 bit I started facing all of sudden then I reordered the path variable like below 

Before:

```
C:\app\oracle64\product\12.1.0\client_1\bin;
C:\app\oracle32\product\12.1.0\client_1\bin;

```

After:

```
C:\app\oracle32\product\12.1.0\client_1\bin;
C:\app\oracle64\product\12.1.0\client_1\bin;

```

started working... Hope this helps everyone.