Letting people write code means they can write evil code
You can either let them write and run anything (the Windows approach) let them write stuff but require approval (the Apple App Store approach) only allow "blessed" apps to run (the corporate locked down PC approach) or remove all the APIs that you think can be dangerous (the Java approach)