Java version of Buildjs