Skip to content
Sign upLog in
← Back to Community
can I compile and run java in repl.it bash?
Profile icon
hacker
has Hacker Plan
aanesko

Is it possible to compile and run java in the repl.it bash? If not the bash, is there another repl.it platform that would work? I just want to be able to demonstrate within a repl.it the javac compile and java run commands. Thanks!

Voters
Profile icon
SHUCIRIYANA
Profile icon
DeepaSelvaraj
Profile icon
aanesko
Comments
hotnewtop
Profile icon
Zavexeon

Have you tried opening the shell and trying? F1 to bring up menu (while repl is open), and select "open shell" off menu.

Profile icon
aanesko

@Zavexeon
Oh, that totally works. The bash repl.it shell doesn't have javac for whatever reason, but of course the java repl.it does & I can pull up the shell as you describe and compile/run from there. Thanks, all set!