You have to enter the commands as below,
Example Java Command:
▪ Compile: javac -cp .:/opt/cloudera/parcels/CDH/lib/hbase/lib/*:/opt/cloudera/parcels/CDH/lib/hadoop/lib/*:/opt/cl oudera/parcels/CDH/lib/hadoop/client/* YourFileName.java
▪ Execute: java -cp .:/opt/cloudera/parcels/CDH/lib/hbase/lib/*:/opt/cloudera/parcels/CDH/lib/hadoop/lib/*:/opt/cl oudera/parcels/CDH/lib/hadoop/client/* YourFileName