It depends.
Oracle Forms has a HOST command which can run an external program from within Forms.
If you are not in a web-forms environment, this will run the program on the client machine.
In webforms it will run the program on the application server.
In the latter case, look into WEBUTIL on the otn.oracle.com site.