Might need to call java -Xshare:dump before running