Fix java library so that javafx works.