Hey does anyone know how I can run a Repl with both Java and Python installed? I ask because I have Python code that requires me to run a Java program as well. Basically, it looks like this:
- I have a jar file that I need to run first. There is an auth flow I need to go through with this Java app and it needs to stay running.
- I need to run a Python program that connects to that Java app through a REST API. On my computer I just use localhost
Welcome to Ask! You might be able to achieve this by editing the entrypoint for your Repl.
Hey @RobertGrzesik!
Just click the ⋮ next to “Files” then click “Show hidden files”. Next click on the .replit
file and finally you can change the entrypoint
to whatever file you want to run.
Images



You can also check out the docs on how to configure a Repl: https://docs.replit.com/programming-ide/configuring-repl
Wow I didn’t know this existed, thank you! This is very helpful.
However, my issue is more around making sure that I have a Java runtime installed. I think I can just run the jar file with Python. Is there some way to modify these hidden files to make sure that the environment has a Java runtime installed?
1 Like
Try installing the Java runtime on your Repl. You can follow this tutorial on the Replit Docs: https://docs.replit.com/programming-ide/nix-on-replit#installation
1 Like
That’s where it is! Thank you so much, you have been very helpful
3 Likes
You’re welcome!
If I solved your problem, you can mark the post which solved your problem as the solution so that others will know what to do if they have a similar issue.

1 Like