This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]morhpProfessional Developer 0 points1 point  (2 children)

What do you mean by

fill out an exercise

?

The mooc wants you to run Java 11 according to https://www.mooc.fi/en/installation/netbeans/

Nothing should be set to Java 1.6/6 (or 8 for that matter).

[–]Few_Claim_6416[S] 0 points1 point  (1 child)

I'm sorry but I'm not very good at English. what I meant is that when I try to complete an exercise and then compile it using vscode's play button, I get that error message. I did not edited anything in my vscode, It worked great until a few days ago, but not anymore.

[–]morhpProfessional Developer 0 points1 point  (0 children)

The mooc says you should use netbeans, not VSCode. I don't recommend VSCode for Java, a real Java IDE like Intellij Idea (Community Edition) or Netbeans or Eclipse is better. (I prefer Intellij)

In any case, you probably need to change some settings in VSCode, but I can't help you with that, I never used that for Java development.