Doing the jar imports in Java if possible

os.listdir is causing problems for some reason