create java viewer