> ..Is there some way I can create a sandbox
> within my program in which I can run this custom code and be sure that
> it cannot do things like write to the filesystem?
Apply a custom security manager.
<http://groups-beta.google.com/group/comp.lang.java.programmer/messages/fc77adad2
9a3fc08,d82a65929e3508d0,937569dfda76174b,948df8d8bf985386,0449635b4f6ec8af,2f2d
4beeb6564d32,58b9bcd4064efb85,efb23296a81d4223,f29ab45389d9f5f2?thread_id=6008bc
2e14d4e02e&mode=thread&noheader=1#doc_f29ab45389d9f5f2>
HTH

Signature
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane