add the get.java.bin and get.java.lib API calls and also make the mains work with this change