Calling GLES functions from a java plugin

Hi there
I have been tasked with writing a small plugin to make depth buffer bit depth accessible from unity C# scripts.
I have created a java plugin, which returns a yes/no for whether the device supports 24 bit depth buffer.

To do this, I call:
String extensions = javax.microedition.khronos.opengles.GL10.glGetString(GL10.GL_EXTENSIONS);
And test whether the resulting string contains “GL_OES_depth24”.

This funtionality is extremely simple, and the plugin works fine with test values. But I can’t actually compile the plugin with the above gl line. I am very new to java (using eclipse by the way) and have no idea how to link to libraries. I’m not sure what to do to get it to work. Do I need to link some kind of opengles library? Do I have to create an opengl context or surface (I hope not). How will that work as a plugin for unity?

I added:
import javax.microedition.khronos.opengles.GL10;
to the top of the file but I still get an error saying glGetString cannot be resolved to a type. What do I need to link, and how to do it?

Probably a very basic java question, but I just can’t find the answer I need.

Hehe, never mind. Was using wrong information (not gles). I got the solution.
I replaced this line:
String extensions = javax.microedition.khronos.opengles.GL10.glGetString(GL10.GL_EXTENSIONS);
with this:
String extensions = android.opengl.GLES10.glGetString(android.opengl.GLES10.GL_EXTENSIONS);
Works lovely!