How to get RTP protocol to Java app?

Hi,
I need to work with RTP streams, but I've got problem that I cannot use rtp protocol - if I want to create a new url, MalformedURLexception is raised, here is sample code:
java.net.URL url;
try{
     url = new java.net.URL("rtp://www.someweb.cz:8080");
catch(Exception e){
     System.out.println("Cannot create url - "+e);
}http and ftp work fine. Can someone explain me what is wrong? JMF is installed on my system...

MalformedURLexception is raised/*Because your URL is not of proper format*/
//New mlr should be
("rtp://www.someweb.cz:8080//video//1")                    ///Becuse it's windoz //
!("rtp://www.someweb.cz:8080)
hmm, damn,
i hope it works.
kiss                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

Similar Messages

  • How to execute Linux command from Java app.

    Hi all,
    Could anyone show me how to execute Linux command from Java app. For example, I have the need to execute the "ls" command from my Java app (which is running on the Linux machine), how should I write the codes?
    Thanks a lot,

    You can use "built-in" shell commands, you just need to invoke the shell and tell it to run the command. See the -c switch in the man page for your shell. But, "ls" isn't built-in anyays.
    If you use exec, you will want to set the directory with the dir argument to exec, or add it to the command or cmdarray. See the API for the variants of java.lang.Runtime.exec(). (If you're invoking it repeatedly, you can most likely modify a cmdarray more efficiently than having exec() decompose your command).
    You will also definitely want to save the returned Process and read the output from it (possibly stderr too and get an exit status). See API for java.lang.Process. Here's an example
    java.io.BufferedReader br =
    new java.io.BufferedReader(new java.io.InputStreamReader(
    Runtime.getRuntime().exec ("/sbin/ifconfig ppp0").
    getInputStream()));
    while ((s = br.readLine()) != null) {...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I have a Verizon IPhone 4 and i can't figure out how to get my ringtones from an app to my iTunes account, it doesn't have a tab for Ringtones! I have tried unplugging it and checking if would show up but it didn't, how do you enable the ringtone folder?

    I have a verizon IPhone and i can't figure out how to get my ringtones from the app to iTunes, my account doesn't have a ringtone section in the liRingtone Folder?brary, how do you enable the ringtone folder?

    Edit > Preferences.  Select the check box for Ringtones, this will add them to the listing in iTunes. 
    Not sure that really answers your question though.

  • How do get rid of duplicate ppc apps on launch pad?

    How do get rid of duplicate ppc apps on launch pad?

    since they are ppc apps and cannot be used in lion, delete them and they will be removed from launchpad.  or if you just cant bare to delete that copy of appleworks, move it out of the applications folder and it will no longer appear
    -mvimp

  • How do get rid of the twitter app when there's no trace of it except for update notices on app store and that too with a stranger's id ??

    How do get rid of the twitter app when there's no trace of it except for update notices on app store and that too with a stranger's id ??

    ayk74,
    so you have no idea where some of your installed software originally came from?

  • Getting hostname within a java app

    Folks,
    How can I get the host name or ip address within a java app. System.getProperty() does not help here.
    Saif

    I guess you need to add getHostName() at the end as well??

  • How to get return value from Java runtime.getRuntime.exec?

    I'm running shell commands from an Oracle db (11gr2) on aix.
    But, I would like to get a return value from a shell comand... like you get with "echo $?"
    I use a code like
    CREATE OR REPLACE JAVA SOURCE NAMED common."Host" AS
    import java.io.*;
    public class Host {
      public static int executeCommand(String command) {
        int retval=0;
        try {
            String[] finalCommand;
            finalCommand = new String[3];
            finalCommand[0] = "/bin/sh";
            finalCommand[1] = "-c";
            finalCommand[2] = command;
          final Process pr = Runtime.getRuntime().exec(finalCommand);
          pr.waitFor();
       catch (Exception ex) {
          System.out.println(ex.getLocalizedMessage());
          retval=-1;
        return retval;
    /but I do not get a return value... because I don't know how to get return value..
    Edited by: user9158455 on 22-Sep-2010 07:33

    Hi,
    Have your tried pr.exitValue() ?
    I think you also need a finally block that destroys the subprocess
    Regards
    Peter

  • How to get the parameter from Java Script into the Parameter crystal Report

    Hi All,
    Crystal Report is integrated with Oracle 10g. I created the base SQL query for col1, col2, col3 and col4. Java Script pass parameter value (185) to Col1.
    My question is how to create crystal report to make Col1 as parameter and how to get the parameter value 185(Col1) from Java Script. Is there any additional code I need to include in the crystal report?
    FYI.
    Java script sends the right parameter value.There is no issue in java script.
    This is an automatic scheduled process when batch runs, Java script should pass the parameter value and the crystal report should get the value and produce the output report.

    Not sure if this is an application question or if you are trying to hook into Crystal Reports parameter UI? If the later then no option other than report design. If an application then I can move this to the Java Forums.
    If you are asking how to alter the parameters I suggest you remove the Java reference and post a new question so it's not confusing the issue.
    Please clarify?

  • How to get rid of the java update virus?

    Everytime i go on a web page something pops up saying to install Java Runtime Environment in order to web content and it gives me the option to click more info (to go to the page to download the Java Runtime Environment) OR ok. Before i clicked ok until it continued to pop and and began to annoy me so i decided to install it. It still pops up and won't go away. I found out it is a virus and i don't know how to get rid of it.
    PLEASE HELP!

    Most likely, you have a web plugin that depends on the Java runtime distributed by Apple, such as the Facebook video calling plugin or the "NexDef" plugin for watching baseball streams. If you no longer need the plugin, remove it. Otherwise, install Java.

  • How to get rid of the java icon on the window

    There is a java icon(top right habd corner) on every window panel.
    How to get rid of it?

    What r u using, AWT r JAVA Swing? would please explain
    ur problem clearlyLOL. No offense, but you might consider phrasing your responses clearly as well...
    r == "are" || r == "or" || r == "argh" :o)
    §

  • When I purchased a music app from itune store. This got downloaded in Itune maedia/Mobile applications.How to get the songs in that app to my  itune library or on to IPAD?

    I  or tranfer to my librarypurchased from Itune store a Music app. It is downloaded into intune media/mobile applications. How to get the full album msic/songs into my itunes library or on tomy IPAD? It doesnot open out. Can anybody suggest a way?

    If you have a music downloader app (depends on which you have), plug your iDevice into iTunes, go to your device (on itunes), go to your apps, scroll down, and select the app thats holding your music, click on "Save As" (should be located bottom right corner), save the music to your specific folder. Once done, follow through this: Adding music and other content to iTunes and you should have your music on your iDevice music app.
    Hope this helps.

  • How to get a refund of In-App Purchase in iPad?

    My son was playing around with my iPad and accidentally purchased the Color and Mixer tool in Paper by FiftyThree application on my iPad.
    I can get a refund for any APP purchased through the App Store from my iTunes Purchase History, but, when I click 'Report A Problem' on the 'Paper by FiftyThree, Color', it direct me to a link to the iTunes Support page.
    How can I get my refund, each costs $1.99 which is important for me.

    Apple's policy states that, "all sales are final" > iTUNES STORE - MAC APP STORE TERMS AND CONDITIONS
    But, if you are having issues with the app, you can at least ask for a refund.
    Use the email form here >  Apple - Support - Mac App Store - Contact Support

  • How to get refund for accidental In-App purchases

    Can someone please help how I get refund - when I report a problem it keeps saying " sorry this purchase is not eligible for a refund."  However, there are about 10 similar transactions and it is only two days old.  My son has accidentially purchased this.
    Many thanks.

    You will need to contact iTunes Support: http://www.apple.com/support/itunes/contact/
    However, terms of use of the Apps store does state that all purchases are final.

  • How to get printer IPAddress using java code

    Hi all,
    Can some one suggest in java
    1) how to get printer IPaddress
    2) send a printer job to a particular printer either by using printer name or by printer IPaddress ?

    Hi all,
    Can some one suggest in java
    1) how to get printer IPaddress
    2) send a printer job to a particular printer either by using printer name or by printer IPaddress ?

  • How to get stylesheet object from JAVA RESOURCE stored in DB

    Hi,
    I stored a xslt file in the database and have a JAVA RESOURCE file now. How can i get a stylesheet object from this resource file?
    I took the following class to get an impression how to get the contents of the resource but -although the name of the resource was spelled correctly- i got a file not found exception.
    Whats wrong?
    public class PrintRessource {
    public static void print (String p_ressource){
    try {
    Class c = PrintRessource.class;
    System.out.println(c.toString());
    InputStream file = c.getResourceAsStream(p_ressource);
    if (file == null)
    throw new FileNotFoundException("XSLT file not in DB");
    byte[] buffer = new byte[4096];
    int bytes_read;
    while ((bytes_read = file.read(buffer)) != -1)
    System.out.println(new String(buffer, 0 , buffer.length));
    catch (Exception exp) {
    System.out.println(exp);
    Thanks

    The code works as is. I just forgot to add the slash in front of the Resource file name.

Maybe you are looking for

  • PDF/X export missing

    Hi there, in the current version of Pages I am missing the "Print / Save to PDF/X"- Option which is essential for creating documents for professional printing. I was able to use it in previous versions - is there any way to get that funcitonality bac

  • Error starting listener on one node in RAC:Error listening on....TNS-12545:

    LSNRCTL> start LISTENER_CORPNG04 Starting /ora00/app/oracle/product/11/db1/bin/tnslsnr: please wait... TNSLSNR for HPUX: Version 11.1.0.7.0 - Production System parameter file is /ora00/app/oracle/product/11/db1/network/admin/listener.ora Error listen

  • Need help filling this object please!!!

    I need to fill shape 1 with a solid color. Shape 2 is what the object looks like when selected. Shape 3 is what happens when I try to fill it with color. I need it to stay within the boundaries shown on shape 1. Please help, I'm relatively new to Ill

  • Pc suite wont install

    I installed the dku2 cable driver first no problem then try installing pc suite 6.7 comes up with error 1935, then i try version 6.1 same error. i have windows XP SP2 and nokia 6230

  • Is a clean install with target mode better than upgrade?

    Hi, is it better to do a clean install of Leopard and then transfer my files through an external fw drive or do just doing a plain upgrade? I ask because I know how much smoother and snappier a system is with a clean install but I do need to transfer