jar file works on command line