How to compile and run java program