Extension devlopment for Android

I created my CRunTest .java file ,extends CRunExtension .
and linked it in CExtLoad.java file.
but "Publish extension" It just compresses the Java file and has nothing to do with CExtLoad.java .
so link is inoperative.

how to call .java by c++

thanks a lot