Hi… i’m new in java
i had a problem for a long time and i could not solve it.
i work on a project i use netbeans 1.5, and I use iReport 1.2.0 as reporting tool.
the problem is when i try to call the report from a frame by clicking a button:
it works well when I run it in net beanns, but I’ve made jar file from the
whole project.when I try to run the jar file and
then calling the report it encounters following error:
java.io.FileNotFoundException: srcreportresultsJRDuk.Dosen2.jasper
>
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:75
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:64
>
at ac.id.utama.MenuUtam.jButton18ActionPerformed(MenuUtam.java:2147)
at ac.id.utama.MenuUtam.access$1600(MenuUtam.java:57)
at ac.id.utama.MenuUtam$17.actionPerformed(MenuUtam.java:293)
at.javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at.javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at.javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at.javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at.javax.swing.plaf.basic.BasicButtonListener.mouseRealeased(Unknown Source)
at.java.awt.EventDispatchThread.pumpEventsForHiesrarchy(Unknown Source)
at.java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at.java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at.java.awt.EventDispatchThread.run(Unknown source)
how should i address the jasper file?! or where should i put the .jasper files? or maybe have another problems?
thanks in advance… I will appreciate any advice….