dextermechanics Posted July 23, 2016 Share Posted July 23, 2016 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 More sharing options...
hozawa Posted July 24, 2016 Share Posted July 24, 2016 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 More sharing options...
dextermechanics Posted July 24, 2016 Author Share Posted July 24, 2016 i have already solve the problem hozawa,,anyway thanks for replying and helping,,^_^ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now