add java file

add java source file and properties file, pom.xml