I need some help...

izit the same like C program using exec to open certain file....
because right now I'm planing to open a Java file when it detect people...