i have application use jna , gets audio , video. works in linux box. when testing in windows. never working. because still learning, appreciate suggestion how fix it, spent few days , weeks work out, dont why java not work simply, cross platform. why should require again system path or etc configuration.
i totally lost now, why works in linux , not work in windows xp ? how can run ?
inside lib direcotry have jna , audio libraries. c:\documents , settings\test\desktop\test>dir volume in drive c has no label. volume serial number 680f-0963 directory of c:\documents , settings\test\desktop\test 19/12/2010 22:09 <dir> . 19/12/2010 22:09 <dir> .. 19/12/2010 22:09 51.791 audio.jar 19/12/2010 22:09 <dir> lib 1 file(s) 51.791 bytes 3 dir(s) 487.002.112 bytes free trying run audio.jar, gets fail 1: c:\documents , settings\test\desktop\test>java -djava.library.path=~/jni -jar audio.jar exception in thread "main" java.lang.unsatisfiedlinkerror: not load librar y gstreamer-0.10 @ org.gstreamer.lowlevel.gnative.loadwin32library(gnative.java:83) @ org.gstreamer.lowlevel.gnative.loadlibrary(gnative.java:43) @ org.gstreamer.lowlevel.gstnative.load(gstnative.java:42) @ org.gstreamer.lowlevel.gstnative.load(gstnative.java:39) @ org.gstreamer.gst.<clinit>(gst.java:59) @ video.myvideo.simpletest(myvideo.java:31) @ sipphone.mainapplet.run(mainapplet.java:58) @ sipphone.mainapplet.main(mainapplet.java:43) fail 2: c:\documents , settings\test\desktop\test>java -djna.library.path=. -jar audio .jar exception in thread "main" java.lang.unsatisfiedlinkerror: not load librar y gstreamer-0.10 @ org.gstreamer.lowlevel.gnative.loadwin32library(gnative.java:83) @ org.gstreamer.lowlevel.gnative.loadlibrary(gnative.java:43) @ org.gstreamer.lowlevel.gstnative.load(gstnative.java:42) @ org.gstreamer.lowlevel.gstnative.load(gstnative.java:39) @ org.gstreamer.gst.<clinit>(gst.java:59) @ video.myvideo.simpletest(myvideo.java:31) @ sipphone.mainapplet.run(mainapplet.java:58) @ sipphone.mainapplet.main(mainapplet.java:43)
you'll need have dll installed, or @ least in jna library path others have pointed out.
it add dependency on windows. dependency on linux gstreamer preinstalled distribution. ran same problem when making use usb port java.
the solution know of avoid dll have second version of code call on windows use win32 stuff (i.e. stuff ships windows) large undertaking.
Comments
Post a Comment