Jmeter - 如何实现另一个java类

发布于 2024-07-29 13:56:12 字数 453 浏览 1 评论 0原文

大家好,

在另一篇文章中,我询问了有关在 Jmeter 中渲染 PDF 的问题,解决方案似乎是使用 iText。

使用 iText 需要安装另一个库并引用它。 有谁知道如何做到这一点? 我找不到教程。 非常感谢。 iText 还依赖于 bouncycastle

iText:http://www.1t3xt.com/downloads/index。 php iText 依赖项: http://www.bouncycastle.org/latest_releases.html

Greetings all,

In another post I asked about rendering PDF in Jmeter, and it would seem the solution is to use iText.

Using iText requires installing another library and referencing it. Does anyone know how to do this? I can't find a tutorial. Much thanks. iText is also dependent upon bouncycastle

iText: http://www.1t3xt.com/downloads/index.php
iText dependency: http://www.bouncycastle.org/latest_releases.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吖咩 2024-08-05 13:56:12

您只需在运行 JMeter 时将其添加到类路径中即可。 不幸的是,在 jmeter.bat 或 jmeter.sh 中,他们使用 -jar 标志运行 JMeter,这将忽略您的自定义类路径。 为了解决这个问题,您只需将 ApacheJMeter jar 包含在您的类路径中,并运行 org.apache.jmeter.NewDriver 类作为您的起始类。

You just need to add it to your classpath when running JMeter. Unfortunately in the jmeter.bat or jmeter.sh they run JMeter using the -jar flag which will ignore your custom classpath. To get around this you need to simply include the ApacheJMeter jar in your class path and run the class org.apache.jmeter.NewDriver as your starting class.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文