Hi all, When I work on a task in Intellij, I want to run it to what result it produces, before submitting to the checker, but when I click on the "run" button, nothing happens. The window on the bottom(Intellij) only shows this: "C:\Program Files\Java\jdk1.8.0_281\bin\java.exe". . . , but not the result. Is this normal? If not, what can I do to see the output? Anyone have had the same issue or know how to fix this? I really like to see the output before I submit it to the checker. Thanks for you help.
You must be signed in to leave a comment
10 November 2022, 19:46
yeah the same s*** different year Does codegym has an article on how to fix it? (the same problem as for ImDevin) tried to reset intellij idea , reinstalled plugin but still the same
26 April 2021, 00:30
Got it. That's why it was showing it was "running" on the bottom of the screen. I didn't realize because of the task was written way it was, it was waiting for me to put in the input. Thanks so much for taking the time to answer. It seems so obvious now, but it was very frustrating. Thanks again.
24 April 2021, 23:58
"Enter strings from the keyboard and add them to the list." After "Run" your program goes to line 21 (screenshot) and is waiting for a string from you (from keyboard). You have to click under "C:\Program Files\Java\jdk1.8.0_281\bin\java.exe". . . (you will see a blinking cursor) and write some text, then press Enter. Then the same: some text, then Enter. Untli you willl write string "end", Enter.
25 April 2021, 03:06
in addition to what Misius said: Make sure to run the program with the green arrow next to the main method in the line number bar. You can see two green arrows in the picture you shared right next to the line numbers for line 13 and line 14. If you don't use these arrows, and you don't set intelliJ to run the correct class you are currently working on, it will run the last task that was set. This is not a bug but the default behavior as it allows the programmer to set the entry point they want run even if they are working in another class.
24 April 2021, 22:29
24 April 2021, 22:29
This is the screenshot of the intellij after I click the "run" button. This is the task 0722, but it does this no matter the task. I know the code is fine, because it passes the test when I submit it to the checker. It does look like it is "running" because I can "stop" it by clicking the stop(red square) button & it gives this msg - "Process finished with exit code -1" why do I have to click the stop button to stop it from running? And why doesn't it show the output? Thnx for your help.
24 April 2021, 22:21
24 April 2021, 00:17
What task? Maybe program is waiting for data from keyboard. Maybe infinite loop. Show your code. Show screenshot of the situation.