
I cannot run the code on IntelliJ
Under discussion

Comments (6)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
29 January 2020, 17:25
It's hard to see, but there doesn't look like there is a main method in that code. Without
public static void main()
there would be no entry point to start the program.
0
Guadalupe Gagnon
29 January 2020, 17:29
If that is that is one of the "Games" tasks, the main() method is in an included library. Just follow the task requirements.
0
HaeWon Chung
29 January 2020, 17:54
Sorry for low resolution image. It's not just "Games" tasks, but I don't have active run icon in every tasks so far, which includes main() method. So I had to copy the code from IntelliJ to website and run it before clicking verifying button - of course I can just click verifying button without running it but I hope to see it running.
0
Guadalupe Gagnon
29 January 2020, 18:19
Once again, hard to see, but it looks like all the classes on the left have squiggly lines. Go to one of the classes and click one of the import statements and hit alt+enter. "setup jdk" should be an option, select whatever jdk you have and this should resolve the problem. If you don't have the jdk then you will have to download the current one from the oracle website.
0
Guadalupe Gagnon
29 January 2020, 18:20
And if that is not the case, select a task that has the main method. Right click inside the method and select "Run Solution.main()".
0
Guadalupe Gagnon
29 January 2020, 18:23
Other than that I don't know. You may be able to find help through google.
0