made java() language configurable. still a hack though