简体   繁体   English

Java到带有引用硒库的exe

[英]Java to exe with referenced selenium libraries

Ive done some research on this but can not seem to figure out how to make a program work if it has referenced libraries. 我已经对此进行了一些研究,但似乎无法弄清楚如果引用了库,如何使程序工作。 I have a java program with dependencies on the selenium 2.12 libraries and I require making the program into an exe because I will have to run this program across several computers that do not have java installed. 我有一个依赖于硒2.12库的Java程序,我需要将该程序制作为exe,因为我将不得不在未安装Java的多台计算机上运行该程序。 I have looked into JSmooth which everyone seems to recommend. 我研究了每个人似乎都推荐的JSmooth。 Has anyone had experience with this that can help me out in setting this up? 有没有人有经验可以帮助我进行设置?

AFAIK JSmooth does not allow you to run java on computer that does not have java installed, simply it downloads Java if it does not find it already installed. AFAIK JSmooth不允许您在未安装Java的计算机上运行Java,只是在未找到Java的情况下下载Java。

You should tell JSmooth the external dependencies (jars) you need, placing them on the classpath as explained here http://jsmooth.sourceforge.net/docs/jsmooth-doc.html#N10166 . 您应该告诉JSmooth所需的外部依赖关系(jar),并将其放在类路径上,如http://jsmooth.sourceforge.net/docs/jsmooth-doc.html#N10166所述

If you then plan to create and installer for your app, you'll need to include also those jars inside it. 如果随后打算为您的应用程序创建和安装,则还需要在其中包含这些jar。

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

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