There is work in progress to make OCaml work with the Eclipse IDE.
Tips for using the OCaml toplevel
Once you've got your Objective CAML development environment installed using one of the links above you might want to try reading one of our tutorials.