Eclipse and Selenium - Transforming . JAVA into . EXE or . BAT

Asked

Viewed 424 times

0

I’m using Eclipse and the Selenium framework to create automated web page opening routines and execute commands (link clicks, field fill, site change, etc). I’ve managed to create some test routines and they all work very well.

As a next step, I wanted to turn a JAVA file I have with Selenium commands into an executable file (EXE or BAT, for example). Or know how to run this JAVA via Command Prompt, without relying on Eclipse to run it.

1 answer

-1

If your file is an . executable jar and not a . package jar you can run this command at the prompt:

java -jar  meuJar.jar

Browser other questions tagged

You are not signed in. Login or sign up in order to post.