Jump to content
Changes to the Jaspersoft community edition download ×

Error Use Java Class (Error evaluating expression : Source text)


jekriando90

Recommended Posts

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,,

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...