How to run es with source code. I mean build the source code and debug

Could someone give me steps of running es with source code.
After build with maven, I run ElasticSearchF.java. it throws Unable to locate the class org.elasticsearch.bootstrap.ElasticsearchF : java.lang.ClassNotFoundException