Ask coding questions

← Back to all posts
How do I setup the .replit file to run the .jar file then the main.py?
Xag803 (1)

I am trying to setup selenium to use the remote server on their documentation I need the replit file to run the server.jar and then the main.py file. Is this possible? If it can't be done are there any alternatives?

Answered by 19wintersp (1121) [earned 5 cycles]
View Answer
Comments
hotnewtop
19wintersp (1121)

If you want the JAR to finish before starting the Python:

run = "java -jar Server.jar; python3 main.py"

or if you want them to start at the same time:

run = "java -jar Server.jar & python3 main.py & wait"