So I have some code (see below) that works perfectly fine on my windows machine both through my IDE and when i compile it. However it does not work when i run the compiled j