compile string to java, working