Jump to content
We've recently updated our Privacy Statement, available here ×

getVersion method for JasperReports


jdessens

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

We do so....

 

Code:
public String getInstalledJasperReportsVersion() throws Exception {
try{
return net.sf.jasperreports.engine.JasperCompileManager.getClass().getPackage().getImplementationVersion();
}
catch (NullPointerException nex) {
return new String("not available"«»);
}
catch (Exception ex) {
throw CustomExceptionHandler.modifyException(ex);
}
}

 

hth

C-Box

Link to comment
Share on other sites

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