简体   繁体   English

如何在Mac上使用Jar Bundler打包JMeter

[英]How to package JMeter with Jar Bundler on Mac

I'm unable to use "Jar Bundler" on mac to create JMeter.app from ApacheJMeter.jar, I was wondering if anyone else had previous experience with configuring this tool? 我无法在Mac上使用“ Jar Bundler”从ApacheJMeter.jar创建JMeter.app,我想知道是否还有其他人以前有配置此工具的经验? The problem for me seems to be that the lib folder being searched is set to an incorrect base path: 我的问题似乎是正在搜索的lib文件夹设置为错误的基本路径:

org.apache.jmeter.NewDriver: JMeter home directory was detected as: /Users/username/Applications/JMeter.app/Contents/Resources

I looked here: http://developer.apple.com/library/mac/#documentation/Java/Reference/Java_InfoplistRef/Articles/JavaDictionaryInfo.plistKeys.html 我在这里查看: http : //developer.apple.com/library/mac/#documentation/Java/Reference/Java_InfoplistRef/Articles/JavaDictionaryInfo.plistKeys.html

But no matter how I configured any of the said properties, the logs looked the same. 但是,无论我如何配置上述任何属性,日志都一样。

The real trick is making sure the bin and lib folders can be found. 真正的技巧是确保可以找到bin和lib文件夹。 The only jar file you will need to add is ApacheJMeter.jar. 您需要添加的唯一jar文件是ApacheJMeter.jar。 Look in the bin/jmeter script for additional properties to put into the properties tab of the Jar Bundler. 在bin / jmeter脚本中查找其他属性,以将其放入Jar Bundler的“属性”选项卡中。 The java arguments in the bin/jmeter script should be copied into the VM Options field. bin / jmeter脚本中的java参数应复制到“ VM Options”字段中。 Check Set Working Directory to Inside Application Package. 选中将工作目录设置为内部应用程序包。 Now create application. 现在创建应用程序。 Open up the .app folder that was just created and copy the bin and lib folders into the Resources directory. 打开刚刚创建的.app文件夹,然后将bin和lib文件夹复制到Resources目录中。 Done. 做完了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM