MartinOShea <appy74 at ...> writes: I have been able to solve this problem. It was to do with the way I was writing the 'cmd' array in the Java code. Thanks anyway. Martin O'Shea.