java classifier works with trained NN