Ubuntu :: JMF Without BASH - How To Code A Media Streamer In Java

Aug 31, 2010

I need to code a media streamer in java but I found out that I would need the java media framework to simplify the task. I downloaded the bin and need to export it into the files where my jdk packages are at by default. I'd rather not set my path variables because I'm not so good at interfacing with BASH. I just want to start nautilus in sudo and drag and drop like I did with my python packages. I am just having trouble locating the jdk lib.I'm not using openjdk but sun-jdk 1.6.18. My OS is Lucid. The package is JMF2.1.1e. I'm pretty sure I just need the just the lib files from it and none of the executable.

View 1 Replies


ADVERTISEMENT

Programming :: Selenium Java Code Into Equivalent Php Code?

Mar 30, 2011

I need to rewrite the selenium java code into its equivalent php code.

View 5 Replies View Related

General :: Command To Check The Java Version: Java -versionand Got :bash :java: Command Not Found?

Jul 26, 2010

I've just installed java (jre-6u21-linux-i586.bin) on Red Hat 4.4 AS and issued this command to check the java version: java -versionand got :bash :java: command not found

View 4 Replies View Related

General :: Compile Java Code On Ubuntu?

Apr 26, 2011

how to compile java code on ubuntu linux? also is it possible to incorporate C code in Java GUI?

View 1 Replies View Related

Ubuntu :: Java Audio Crash In Native Code

Oct 25, 2010

java: /build/buildd/openjdk-6-6b20-1.9/build/../pulseaudio/src/native/org_classpath_icedtea_pulseaudio_Stream.c:680: Java_org_classpath_icedtea_pulseaudio_Stream_nativ e_1pa_1stream_1cork: Assertion `stream' failed.

I keep getting this error about 1-10% of the time when a Java application tries to play audio. When this happens, the whole JVM quits, which means the crash is in native code. I find it difficult to test my Java games, for obvious reasons, since I am a Java developer primarily. I use Eclipse 3.6 SR1 to develop my Java apps, and I'm a recent convert to Ubuntu from Mac OS X. EDIT: Whoops, forgot to mention that I'm running Ubuntu 10.10 "Maverick Meerkat" x86_64 version.

View 9 Replies View Related

General :: Draw UML From Java Code?

Apr 27, 2011

Does anyone know an application that can draw UML graphs automatically from Java code for linux platform. I've tried startuml, but in doesn't work very well.

View 1 Replies View Related

Ubuntu Multimedia :: PS3 Media Server Does Not Start Java Conflict?

Apr 4, 2010

I have been using this program for about 2 months now, but all of a sudden yesterday, it doesn't not show up on PS3. I check on my computer and it is frozen. I close it and try to restart. From then on, it never comes back. It seems like it wants to (the tray icon wants to appear but quickly disappears). I check on System Monitor and Java is running (when you hover over it it lists the program) but in the Waiting Channel it is the only program that says futex_wait_queue_me. It is also the 2nd highest memory user (49 MiB). I have done a lot of different things. Tried getting the latest beta release (which did make it pop up but would never start), I installed the new debian package (when it installed it said pms was already running), uninstalling and reinstalling JDK 6. Nothing works. I don't know what in the world would cause it to do this. It was like fine one minute, dead the next. I've tried other servers (Mediatomb won't let me access some of my drives and PS3 doesn't see it, I MythTV's front and backend stuff is way confusing).

View 1 Replies View Related

OpenSUSE :: Java Media Framework (JMF) - Sip Communicator

Apr 18, 2009

I tried now for hours to run the sip-communicator. It ends up with the following errors

Code:
Failed to realize: com.sun.media.ProcessEngine@1d592a
Cannot build a flow graph with the customized options:
Unable to transcode format: LINEAR, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed
to: gsm/rtp, 8000.0 Hz, Mono, FrameSize=264 bits
outputting to: RAW/RTP
Error: Unable to realize com.sun.media.ProcessEngine@1d592a
14:55:16.400 SCHWERWIEGEND: impl.media.MediaControl.createDataSourceForEncodings().839 Couldn't realize sourceProcessor
14:55:16.400 SCHWERWIEGEND: impl.protocol.sip.OperationSetBasicTelephonySipImpl.processInviteOK().731 We failed to process the SDP description of sip:100@192.168.1.10(sip:100@192.168.1.10). Error was: Couldn't realize sourceProcessor .....

I figured out that this has something to do with the Java Media Framework, which is installed. So I played a little with JMStudio. But this dosen't work, too. It doesn't matter which sample rate I chose. I always receive the following message.
Failed to prefetch: cannot open the audio device.
The only audio device I can chose is the JavaSound audio capture. I'm logged in as root.
printenv

Code:
CLASSPATH=/usr/bin/JMF-2.1.1e/lib/jmf.jar:.:
JMFHOME=/usr/bin/JMF-2.1.1e
JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun
LD_LIBRARY_PATH=/usr/bin/JMF-2.1.1e/lib:/usr/lib/mpi/gcc/openmpi/lib

Versions:
openSuse 11
Java 1.6 jdk
JMF2.1.1e
sip-communicator alpha2/alpha3 (tested both)

View 1 Replies View Related

General :: Tool To Convert My Whole Java Code To C / C++?

Aug 6, 2010

As a part of my project I have to write the code from scratch in c/c++ but I already have a full blown Java code available with me. Is there any tool that can do the same.

View 10 Replies View Related

Programming :: Java And GTK (native Code) Not Compatible With Gcj And Gnome-GCJ

Jul 2, 2010

I'm trying to build a GUI for my java app and compile with gcj (to native code). I started googling and found 3 possibilities: Java-Gnome, Gnome-GCJ and libswt. Unfortunately, Java-Gnome is not compatible with gcj and Gnome-GCJ is, but is no longer maintained. The third option, libswt, I could not find any clear information what is it and how it works. Can you enlighten me a bit more about the subject?

View 8 Replies View Related

Programming :: Create A .bin File From Java Source Code?

Jan 4, 2010

i am trying to generate a linux executable data (bin data) from my java source code.

View 4 Replies View Related

Ubuntu :: Use Streamer To Setup A Cron Job To Take A Picture With Webcam?

Nov 17, 2010

I am trying to use streamer to set up a cron job to take a picture with my webcam once/minute. The image that it is capturing is too dark - does anyone know a way to lighten it? I am capturing the image as JPEG.

View 3 Replies View Related

Programming :: How To Use Bash Variable In C Code?

Feb 16, 2011

I want to write a c program with some shell scripts.Now For a simple C program. I am Setting a variable called val2 in bash, now I want to use bash variable val2 in C code. How do I do that?The above doesn't work (coz its spawning a different memory space and when shell script ends the variable dies with it as per my research but how do I keep them in same memory space)Also Is there any Good reference where they teach how to integrate C and Bash Together?

View 5 Replies View Related

Programming :: Any Benefit To Code In KSH Or ZSH Instead Of Bash?

Jun 15, 2010

I have been scripting (or programming) in Bash shell for around 2+ years now. I have heard that ksh and zsh are better shells than bash. Are there any differences on the scripting side too, I mean is it easier to write a script in ksh or zsh rather than bash? Is there any benefit to code in ksh or zsh instead of bash.

View 1 Replies View Related

Debian Hardware :: Webcam Works But Not With Streamer After Squeeze Upgrade

Feb 25, 2011

My logitech quickcam express works fine with gstreamer-properties and cheese, but i need to take webcam pics from console. It worked before the latest upgrade to squeeze, then:

My kernel is kernel 2.6.32-5-686

I don't know what to do... i'd like to run another kernel but i don't know which one..(and how to do that, i'm on remote)

View 6 Replies View Related

Ubuntu :: BASH Script To Get PID Of Java File?

Jun 18, 2011

I have a simple bash script called run.sh:

Code:
java -jar /testing/run.java How do I get the Process ID and save it in a file called "PID"

View 1 Replies View Related

Fedora :: Update Java And Finding A Movie Player That Plays Windows Media Video Files?

May 31, 2010

how can I update java, is there a movie player that plays windows media video files?

View 5 Replies View Related

Fedora :: Zenity - Bash: [/code]: No Such File Or Directory

Apr 9, 2010

Awhile back, PabloTwo pointed me to zenity as a way to create bash scripts with changeable parameters. That thread is here, for anyone interested in reading about it: [URL] Anyway, my problem is that I'm trying to capture input that contains double-dashes ("--") but zenity (or maybe or it's bash???) complains with the following error message:

"This option is not available. for all possible usages.
bash: [/code]: No such file or directory"

Here's an example of what I'm doing:

Code:

# Select the time of day
Flytime=`zenity --list --text="Select the Time" --radiolist --height=300 --width=300 --hide-column=2 --column="Select" --column="Code" --column="Time of Day"
"" "--timeofday=real" "Local Time"

[code]....

What I want to accomplish is for the variable $Flytime to contain either "--timeofday=real" or "--timeofday=dawn" (without the quotes) depending upon which radio button is selected. I have tried escaping "--timeofday" (e.g. "--timeofday" and even "--timeofday") but that's not working.

View 3 Replies View Related

General :: Bash - Attaching Some Code To Session Start And End?

Jun 20, 2011

I'm trying to execute some code (let's call it login.java) when I log in and out of my linux machine. Is there any way to do this? I'm looking for perhaps a way to trigger the code? I've thought of just putting it in my .bash_login but preferably the code would launch on normal login, not when I start my terminal.

View 2 Replies View Related

Programming :: Passing Parameters From C Code To Bash Script

Apr 16, 2011

I get no print to stdout on screen from the C code.Does bash somehow block or mask it?I get print from bash. I get this error in the non-test bash script like: let "rdval = $rdstr"syntax error: operand expected (error token is " ")The let command prints rdval= but I presume this is due to the printf test statements getting in the way.I am getting no compile errors. Why does the C code not print the values specified?

View 2 Replies View Related

Software :: Environmental Variables In BASH Source Code

Mar 17, 2011

My question has to do with how environmental variables are passed from parent to child processes at the BASH SOURCE CODE level. I have a need to add an environmental variable that has the complete invocation line so that the child process can see it via ENVP.I have been studying the source for a quite a while and can't seem to find how to make the variable pass to the child. In EXECUTE_CMD.c I found a good place to set the variable: I made a routine similar to PUT_COMMAND_NAME_INTO_ENV called PUT_COMMAND_LINE_INTO_ENV which would add "?=THE FULL INVOCATION LINE" as an environmental variable but it doesn't make it to the child. (I've tried names other than '?' but they don't work either.

I'm thinking that there is either a LIST or a attribute associated with those environmental variables that should be passed to the child but I can't find it.

View 1 Replies View Related

Ubuntu :: Installing Java - Bash: Version: No Such File Or Directory

Aug 22, 2010

i'm brand new to linux and honestly don't know how to use it very well and i am trying to install java, following the directions is not working i am stuck at Code: chmod a+x jre-6u<version>-linux-i586-rpm.bin it says bash: version: No such file or directory i downloaded the software to the downloads folder firefox uses as default.

View 6 Replies View Related

Programming :: Java Output Into Bash Variable?

Feb 20, 2011

I have a bash script that calls a java class method. The method returns a string to the linux console when run independently. how can I assign the value from the java method to a variable in a bash script?running the script: java -cp /opt/my_dir/class.method [parameter]

output: my_string if added in a bash script:

read parameter
java -cp /opt/my_dir/class.method [parameter] | read the_output
echo $the_output

the above doesnt work, I also tried unsuccessfully:

the_output=java -cp /opt/my_dir/class.method [parameter]
the_output=`java -cp /opt/my_dir/class.method [parameter]`
java -cp /opt/my_dir/class.method [parameter] 2>&1

How can i get the output stored into the_output variable?

View 6 Replies View Related

Programming :: Running Bash Script Using Java?

Aug 18, 2010

how can i run a bash script script by using java in rhel5... then please reply....i have vary good project in my mind.....

View 2 Replies View Related

Debian Programming :: How To Do Code Bash Script To Run Su And Enter Password

Sep 15, 2014

Whats the bash script for like, how synaptic package manager runs ..

When you run synaptic it ask for root password ..

How do I do this in bash script?

View 5 Replies View Related

Programming :: Bash Script For Finding And Replacement In Any Webpage Code?

Feb 19, 2011

I want to write Bourne-shell script that will be to do finding and replacement in any web page code (.htm file) name of the tied folder in which have been saved pictures, .css, .js and other files. This folder create a web browser when we save web page completely and has so name as web page and has ending '_files'. I have many web pages where name of their folder are incorrect. Of course, my web browser shows these web pages without pictures. I can count amount of web pages in a folder (/path) needed for me.

1) find /path -type f -name "*.htm*" -print | grep -c .htm or find /path -type f -name *.htm | wc -l I can get list of web pages.

2) ls /path *.htm > out-list But I don't know how to assign the value from out-list (2) or result commands from pipeline (1) to a variable. Then I want to do next:

3)

var="1"
# where variable 'list' is an amount of web pages
while [ $var -le $list ]

[code]....

4)assign the 1st (then 2nd , etc. ) value from out-list (2) to variable 'webfile'
sed -n $var,+0p out-spisok

5)find the 1st string value '_files' in the 'webfile' grep -m1 _files $webfile

6)For example, 'abracadabra_files' is an incorrect folder in the 'webfile' I must to know start and end position 'abracadabra' without ending '_files', "cut" name of the incorrect folder and assign it to the variable 'finder' finder = 'abracadabra' BTW, name of a folder before '_files' is between '="' and '_files' in any web page code.

7)foldernew = $webfile (without '.htm')' foldernew' is equal with name of the tied folder without ending '_files' in the folder '/path'

8)find and replace in the 'webfile' and save result in the 'webfile-out'sed s/$finder/$foldernew/g $webfile > $webfile-out

View 5 Replies View Related

Security :: Write Secure Code For Bash Scripts In General?

Feb 9, 2010

how to write secure code for bash scripts in general? Strangely I didn't found anything in google and in the forum so far. If someone here is willing to review a bash script for me (about 600 lines).

View 6 Replies View Related

Programming :: Can Bash Commands Be Converted To Assembly Like C Source Code?

Nov 30, 2010

I have read where C is first converted to Assembly before its final compilation to binary. Is there a way to do this with Bash commands? I would like the understanding that Assembly allows to Bash somehow.

View 14 Replies View Related

Programming :: Kill Follow-on Code If Source Fails In Bash?

Dec 20, 2009

I have a Bash script that runs other bash scripts. If the parent code fails, is there any way for me to also kill the child code?That kills any multiple instances of a script if I run it more than once. Is there any way I can just modify this into something that prevents the child code from running/continuing from running if the parent stops from an error?

View 3 Replies View Related

Programming :: Java Coding To Use Call The Bash Script?

Oct 31, 2010

i am using front end as java and back end RHEL5.i am trying to calling a bash script with java. but i am facing problem.i am using following java coding to use call the bash script

import java.util.*;
import java.io.*;
public class b

[code]....

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved