How to run java file using the shell_exec

Hi friends

I have one requirement i.e i want run the java file from php for this i am using the shell_exec(“cd/usrR/opt/java;javac;java sample super”)command, here my problem is java is out side the chroot i use shell_exec command for running the out side chroot jail files.

If any one know please tell to me

Thanks and Regards

swamy vnvs