The first is
to directly put the package in the jmemter extension package directory:
apache-jmeter-2.12\apache-jmeter-2.12\lib\ext
The second one can
then import your own classes directly in beanShell and call them just like in Java.
It should be noted that if the parameter is wrong, the imported package will be prompted to report an error, which makes people mistakenly think that an error is introduced.