fix permgen on java 8 and above

in java 8 is permgen replaced with metaspace and you don't need to modify it