Linux works but Windows does not work ?

63 views
Skip to first unread message

KbcSkype

unread,
Dec 19, 2010, 3:16:02 PM12/19/10
to gstreamer-java, shamu...@gmail.com
Hello,

The same jar is working in my box Fedora 12. And Same code does not
work in my Windows XP. Please kindly have a look the screen shot ? ex:
http://i.imgur.com/ktrhQ.png

What can this be ? Signing issue only ? Or ..


Thanks & Regards

又鋼

unread,
Dec 20, 2010, 1:43:17 AM12/20/10
to gstream...@googlegroups.com

Your AudioSrc is:
Linux: alsasrc ?
Windows: directsoundsrc ? 

2010/12/20 KbcSkype <shamu...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
To post to this group, send email to gstream...@googlegroups.com.
To unsubscribe from this group, send email to gstreamer-jav...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gstreamer-java?hl=en.


Tal Shalif

unread,
Dec 20, 2010, 2:04:04 AM12/20/10
to gstream...@googlegroups.com
Please see group thread 'How To: Setup gstreamer-java on Windows'

Shamun toha md

unread,
Dec 20, 2010, 11:28:53 AM12/20/10
to gstream...@googlegroups.com
Ok, great link but its not exactly the same.

Summarize, i am trying to see JAVA APPLET works:
1. He is using 64 bit, i am using Linux 32 bit
2. He is using Windows Gstreamer , i am using Linux Gstreamer (but JAVA is not cross platform ? )
3. He tried all for 64 bit, and i am doing it in 32 bit same pc with VMware.

What its not working any suggestion. ? I would really appreciate if somone know this rubbish franstrating problem, spended so many hours and hours, didnt found 1 working example yet or how tos.

Note: Linux build works perfect --> via java applet --> Windows xp it does not work nor java -jar applet.jar works

Thanks & Regards
Shamun

Tal Shalif

unread,
Dec 20, 2010, 12:05:31 PM12/20/10
to gstream...@googlegroups.com
You might have missed David Liu's submission on the thread, which looks exactly appropriate for the error shown in your screen shot at http://i.imgur.com/ktrhQ.png:


> When executing GstTest.main() an exception is thrown: 
>   Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not 
> load library gstreamer-0.10 
>         at org.gstreamer.lowlevel.GNative.loadWin32Library(GNative.java:83) 
>         at org.gstreamer.lowlevel.GNative.loadLibrary(GNative.java:43) 
>         at org.gstreamer.lowlevel.GstNative.load(GstNative.java:42) 
>         at org.gstreamer.lowlevel.GstNative.load(GstNative.java:39) 
>         at org.gstreamer.Gst.<clinit>(Gst.java:59) 

The UnsatisfiedLinkError means that the JRE cannot find the GStreamer 
binary DLL files (unrelated to the Java class files). The simplest 
options are: 

(1) Add the -Djna.library.path=... VM option to your run profile in 
Eclipse. 

(2) Add "C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\lib 
\gstreamer-0.10" and any other folders for dependent DLLs to the 
system PATH (in Control Panel -> System -> Environment Variables)

Shamun toha md

unread,
Dec 20, 2010, 4:16:39 PM12/20/10
to gstream...@googlegroups.com
No still did not works. I followed David Liu's advise didnt worked. That means JAVA APPLET never works with GStreamer. You have to install your own applet and then you need to make sure GStreamer is also pre installed ????? 

My goal is "Develop in Fedora 12 and Port it to Windows", without changing or building another binary, we are talking about "JNA" so why should i care i need DLL ? It should simply start like java audio can starts.

1) I need to run this Audio.jar ( no touch from windows, completely shifted from my Fedora 12): 

C:\Documents and Settings\test\Desktop\test

19/12/2010 22:09 51.791 Audio.jar
19/12/2010 22:09 <DIR> lib
   
2) Lib directory contain 

C:\Documents and Settings\test\Desktop\test\lib
gstreamer-java-1.4.jar
jna-3.0.4.jar

Tal Shalif

unread,
Dec 20, 2010, 10:49:53 PM12/20/10
to gstream...@googlegroups.com
Forget the applet for the moment - you can't yet run the application from the command line. Your binaries are not found by JNA. Also, Linux/Fedora have nothing to do with your problem - since you are running it under windows inside VMWare.

You need to focus only on how to solve the JNA/DLL issue for now. Have you tried to run one of the examples, to check your system integrity? Do that before trying any of your own code. For example:

dos> java -Djna.library.path=xxx -cp xxx org.gstreamer.example.PipelineLauncher --gst-plugin-path=xxx videotestsrc ! autovideosink

(or choose another simple example from org.gstreamer.example)

Shamun toha md

unread,
Dec 21, 2010, 4:42:07 AM12/21/10
to gstream...@googlegroups.com
OK, i figure out what the hack is going on with me. Here is the screen shot which shows (Written code in Linux without recode or modify ported to Windows and it works) http://i.imgur.com/090K6.png

Now for the new comer please follow this steps:
=============================
1) Let me make it very simple, simply i installed Gstreamer winbuild from .exe or .msi from gstreamer windows official release website. And i reboot Windows (so that environment paths gets ready) and then test from my:
dos_shit> echo %GST_PLUGIN_PATH%
and it works.

2) It says you do not have GStreamer in your system, you must install it before trying GStreamer JAVA (which has nothing to do.

> When executing GstTest.main() an exception is thrown:
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not
> load library gstreamer-0.10
> at org.gstreamer.lowlevel.GNative.loadWin32Library(GNative.java:83)
> at org.gstreamer.lowlevel.GNative.loadLibrary(GNative.java:43)
> at org.gstreamer.lowlevel.GstNative.load(GstNative.java:42)
> at org.gstreamer.lowlevel.GstNative.load(GstNative.java:39)
> at org.gstreamer.Gst.<clinit>(Gst.java:59) 


3) My case is plain and simple, i want to code in my linux and i dont want to recode for all the distros (Mac/Windows etc etc), i want plain and simple deploy. (otherwise whats the point of using JAVA namely cross platform ?)

Thanks & Regards

Shamun toha md

unread,
Dec 21, 2010, 4:47:42 AM12/21/10
to gstream...@googlegroups.com
First episode we solve the Desktop release of Gstreamer java.

Second episode:
==============
Now the second episode of this article is, I want to write code in Linux and deploy to other distros (Windows, Mac), But i dont want to put 48 hours of thinking how can i install my program to all those distros, user friendly way, keeping this in my mind is my goal to achieve.

1) I wrote it in JAVA Applet

2) I signed it, with all the signing available

3) I tested it now with Windows-> Internet browsers ( SEA Monkey, Safari, Opera, Chrome, IE6/7/8/9, Firefox)

NONE works.

Whats the point of it still ?

Thanks & Regards
Reply all
Reply to author
Forward
0 new messages