using UNIX C and JAVA