When you say "not running" do you mean the code compiles OK but the try/catch is not working when the program runs?
If "not running" means not compiling, then post your code. Also some compilers require you enable exceptions in order for code using exceptions to compile.
Comment