Problem with plugins written in java

I wrote a simple java program that just prints a word
System.out.println(“hello”);
System.exit(2);

i edited command and localhost configuration files. Its showing this service which i named. but this hello is not shown. it shows null.