0

Below is a screenshot of IntelliJ on my computer with a terminal up.

enter image description here

I thought I should be able to just type java random_uniformin the terminal to run the program but it complains withe the error message shown in the screenshot.

I have looked at similar questions to mine but still wasn't able to resolve the issue.

stratofortress
  • 453
  • 1
  • 9
  • 21

1 Answers1

0

The terminal in IntelliJ is just your shell (if you're on unix) and cmd.exe-like command prompt (if you're on Windows). There's no magic.

So to run program in terminal you need to compile it as usually and run binary.

Here is an answer about how to compile Java program

Pavel Shishmarev
  • 1,335
  • 9
  • 24