I have never used Xcode before (well, actually I have, it is only that I did for like 3 seconds, and decided to switch to Eclipse), but there must be a property related to the way you run the program. There, there must be a way to send arguments to the Java Virtual Machine (VM arguments or something). In that place you need to add the line: