c program sends a string to java program via console