Fix java mode setting for libbun