Runtime's exec() api doesn't work on Tiger

Discussion in 'Mac Programming' started by vikasu, Feb 10, 2008.

  1. macrumors newbie

    Joined:
    Nov 6, 2007
    #1
    Dear All,

    I wrote the following code:-

    Runtime rt = Runtime.getRuntime();
    String strJapaneseName = m_bundle.getString("Name");
    //strJapaneseName will contain Japanese characters let "によ"
    String [] strCopyCmd = {"rm","/private/var/root/Desktop/"+strJapaneseName+".rtf"};
    try
    {
    Process p = rt.exec(strCopyCmd);
    } catch (IOException ex)
    {ex.printStackTrace();}


    Now place the によ.rtf file on Desktop, and change the locale to Japanese.
    Run the code, it works fine on Leopard, but with the same scenario it doesn't work on Tiger.
    Why?????

    Please reply with ur suggestions.
     
  2. macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #2
    whats the exception?
     

Share This Page