Compiling/Running Program

Answered

I can't find the button to run my Java program, I watched some videos and I can't seem to find the run button on the left and I can't find the run button in green(is shaded out) on the top right either.

1
2 comments

Hi Ethan,

In order for stuff like running your code, error highlighting, etc. to work in Java files, you need to put them into a Sources directory (blue folder icon). You can mark a directory as such by right-clicking on it in the Project view on the left, and selecting 'Mark directory as' > 'Sources Root'.

See example below.

1

Thank You, I couldn't put a Java Class file into the src folder even though I saw that I should in some tutorials re-installing it worked. 

0

Please sign in to leave a comment.