I create java method and I want to execute that on jasper report, like this: package javafunct; public class Main { public String getTes(){ return "it work"; } } i want to show that result to my jasper report, so i put that on textfield with textfield expression : new javafunct.Main().getTes() i had compiled that,and then i set that jar file to the ireport classpath and my php code. when i run from ireport it's working. but when i run from php to open this report, it's not work .. the error is : Error evaluating expression : Source text : new javafunct.Main().getTes() thanks before,,