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

how to view my ireport .jrxml in my java system after i convert to .exe file..the report wont show anymore


dextermechanics

Recommended Posts

this is my code

 

public void otherprint(){

InputStream is = null;

try{

con = Sqlcon.getConnection();

String report = "/Reports/other.jrxml";

is = getClass().getResourceAsStream(report);

JasperReport jasp = JasperCompileManager.compileReport(is);

JasperPrint jaspprint = JasperFillManager.fillReport(jasp,null,con);

JasperViewer.viewReport(jaspprint,false);

}catch(Exception e){

System.out.println(e);

}

}

i have already import some libraries

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

If it was working in your IDE, the it's probably either your exe is searching for a different directory for jrxml file or you're missing some jar files. What does the error message say?

Anyways, how are your converting your jar file to exe?

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