No, I am using IntelliJ.
The issue has got resolved now by the way. There was a particular class in jar that was giving the trouble. I realized when compiled using java 1.6 wherein it was giving 'Error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider org.eclipse.sisu.space.SisuIndexAPT6 not found'.
When I deleted that class from the jar, it started generating the class file succesfully.
Now why Java 1.7 was ignoring that issue and showing compilation as successful without being able to generate the class file .... is a million dollar question.
Thanks for the response !