I'd tested the work of Selenium with my firefox, and successfully open firefox browser and load to a specific webpage.
I'm recently building an jar file from a project, which created an jar file. While running the file by command:
java -jar file.jar
It shows the error:
java.lang.IllegalStateException: The driver executable does not exist: Directory\geckodriver
I'd made sure that my geckodriver.exe is correctly located in the indicated path Directory\geckodriver, and I'd also add the path of geckodriver location to System Path.
What could I do to solve the problem? Since I'm running on a jar file, most of the solutions I found online that directly modifying the .java file couldn't work.
Thanks for any help!