well
use the shell command as follows
first create a batch file
--->
open "filename.txt" for output as #1
print #1,javac filename.java
name "filename.txt" as "filename.bat"
close #1
now execute this batch file
shell("filename.bat")
hope this works
regards
nana