Fixed bug in Java (was only appearing on Windows.)

Signed-off-by: FellowTraveler <F3llowTraveler@gmail.com>