I'd like to compile and run Java programs in the CS50 IDE, but I'm clueless as to how to do so. I can write code in a .java file, but after that, I have no idea how to compile and then run the code. Any advice, please?

1 Answer 1


Nevermind, I figured it out. I'll say it here just for future reference.

javac filename.java

java filename

from https://askubuntu.com/questions/145748/how-to-compile-a-java-file-on-ubuntu

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .