how to Invoke process action aftter creating it?
<p>i am writing simple class which create a process and i wish to use the actions(methods) this process can do and i dont know how.. </p>

<p>my simple method is :</p>

<pre><code> public void initProcesses()
    {
        Process pA;
        Process pB;
        Process pC;

        try 
        {
            pA = Runtime.getRuntime().exec("java -cp ProccesA.java ");
                    Class&lt;ProccesA&gt; a = pA.getClass&lt;ProccesA&gt;();
        } 
        catch (IOException e)
        {
            e.printStackTrace();
        }
    }
</code></pre>

<p>now, i am not really sure i know if getclass will help (and i know i can use reflation instead) but i need to do this with process so this is my problem,</p>

<p>any suggestion someone on how i can use my proccess ProccessA.Java and use hie methods ?</p>

<p>thanks</p>
