Revert "[java] move applicative code in app directory"

This reverts commit f3cf8ffb0f5c18911675a8c79b8c9807ffae4640.