javascript != java ;) The code posted is actually javascript, which isn't compiled but ran (typically) by web browsers. Not sure if you need java or javascript, but if you are interested in java...