javac isn't in the OpenEmbedded recipe list like the jre is. Getting the compiler would not be an easy task, not something I think could be done very readily.
Actually, isn't the Java compiler written in Java? Or something? That would probably run with java.pnd