Remove ".class" extension before replacing path separators.