adding java code and libraries