Yep. I wonder if there isn't a (Java?) library out there in the OS world for validating JVM arguments.