'java.lang.UnsatisfiedLinkError: Could not load library gstreamer-0.10

I'm getting this issue while compiling the code below. I installed gstreamer for Windows and added development jar file to my IDE but I couldn't solve this problem, please help me.

import org.freedesktop.gstreamer.ElementFactory;
   import org.freedesktop.gstreamer.Gst;
   import org.freedesktop.gstreamer.State;
   import org.freedesktop.gstreamer.elements.PlayBin;  
   import org.freedesktop.gstreamer.lowlevel.GstNative;

   import java.io.File;

   public class Main {

    public static void main(String[] args)
    {
        try {

            Gst.init("MyMediaPlayer", args);

            PlayBin playbin = new PlayBin("AudioPlayer");
            playbin.setVideoSink(ElementFactory.make("fakesink", "videosink"));
            playbin.setInputFile(new File("good.mp3"));

            playbin.setState(State.PLAYING);
            Gst.main();
            playbin.setState(State.NULL);
        }
        catch(UnsatisfiedLinkError t)
        {
            t.printStackTrace();
        }
    }

}


Solution 1:[1]

Include directory for gstreamer library in the user environmental variable named 'Path'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user7013