1
I have a Java desktop application that uses Jasperreport for reporting, the application runs normally on my machine, but on my client’s machine it does not. Below is the Stack Trace when the application runs on my client’s machine. Does anyone have any idea why the application can’t open the necessary jars for Jasper to run?
Created dir: C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\build
Updating property file: C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\build\built-jar.properties
Created dir: C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\build\classes
Created dir: C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\build\empty
Created dir: C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\build\generated-sources\ap-source-output
Compiling 55 source files to C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\build\classes
error: error reading C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\lib\iText-2.1.7.js2.jar; error in opening zip file
error: error reading C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\lib\jasperreports-5.6.1.jar; error in opening zip file
error: error reading C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\lib\jasperreports-applet-5.6.1.jar; error in opening zip file
error: error reading C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\lib\jasperreports-fonts-5.6.1.jar; error in opening zip file
error: error reading C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\lib\jasp erreports-javaflow-5.6.1.jar; error in opening zip file
error: error reading C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\lib\jcommon-1.0.15.jar; error in opening zip file
error: error reading C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\lib\jdt-compiler-3.1.1.jar; error in opening zip file
error: error reading C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\lib\jfreechart-1.0.12.jar; error in opening zip file
error: error reading C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\lib\png-encoder-1.5.jar; error in opening zip file
9 errors
C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\nbproject\build-impl.xml:929: The following error occurred while executing this line:
C:\Users\PC4ADMINISTRADOR\Documents\NetBeansProjects\SignusSystem\nbproject\build-impl.xml:269: Compile failed; see the compiler error output for details.
FALHA NA CONSTRUÇÃO (tempo total: 3 segundos)
File build-impl.xml line 929:
928 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
929 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
930 <copy todir="${build.classes.dir}">
931 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
932 </copy>
933 </target>
File build.impl.xml line 269
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
Is there any more error or error is just this line? Your application is right desktop?
– Shura16
Then this error message is shown: "The Java Exception Has occurred". It is a desktop application, the strange thing is that if I remove the imports to the Jasper classes, the application works normally. But if I try to use Jasper, the application doesn’t work.
– Célio
I added Stacktrace’s bug, but still have no idea why the application can’t open the . jars
– Célio
It is giving error to read their jars. Usually I use Maven to solve this kind of problem. I would try to recreate the folder and re-download the jars by adding them to the classpath via IDE.
– Shura16