Jmeter references the jxl package to modify the EXCEL problem

1. 报Response message:org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval    jxl/write/WritableCell 报

This is because JDK 1.8 is used, so put the jxl.jar package in the {jdk1.8}/jre/lib/ext folder. Where {jdk1.8} is the root directory of the JDK installation, that is, the value of "JAVA_HOME" in the system environment variable.

To be on the safe side, put a copy under {JAVA}/lib/ext ({JAVA} is the installation address of java, it will be installed when you install JDK)

Note: If jmeter, restart jmeter.

 

2. 报Response message:org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval    Yun/UpdateExcel has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 52.0错

This problem is caused by the inconsistency between the JDK running jmeter and the JDK compiling Jar. Modify the compiled version of Eclipse: select the project-right click-Build Path-Configure Build Path-Java Compliter to modify JDK Compliance. Repackage after modification.

Note: If jmeter, restart jmeter.

 

Guess you like

Origin blog.csdn.net/tianyueWindbg/article/details/113870747
jxl