New to all of this - debian package help

Hi guys -

I'm trying to chef-ize an elastic search setup for Ubuntu (12.4) and I'm a
bit wedged - well, things seem fishy....

We have a "blessed" oracle jdk we need to use, but the elasticsearch deb
file requires openjdk.

So it's slowly looking like I need to apt-get install
java7-runtime-headless, then install the deb, then install the oracle jdk.

If I don't do this, apt will always complain that there are unmet
dependencies from the elasticsearch package.

Suggestions?

--