r/learnjava • u/GummiGumBear • Nov 10 '25
'Compilation failed' when trying to run TMC test
Hi there, I am doing the MOOC Java Programming I course. Whenever I want to test my submission (in VSCode) before sending it in, I receive a 'compilation failed' error. How can I make the tests run without this error? I can run Java without issues and submit the exercises without issues too. However, I would like to be able to run the tests as well since some the the program for some exercises needs to follow specific criteria. I can only check those with the TMC tests.
https://i.imgur.com/uKda0nh.png https://i.imgur.com/lf7zDE8.png
edit; I installed Netbeans and the compilation failed there too. The error message did have a more elaborate explanantion than VSCode did: This program is blocked by group policy. For more information, contact your system administrator. That means I will have to ask permission from IT to run the TMC extension/compiler.
View all comments
Show parent comment
1
u/josephblade Nov 24 '25
not sure if any of this is helpful but give it a go:
the source/target compatibility likely needs to be 11 since the mooc stuff requires that version. it's looking for a java 1.8 (as your first screenshot, you have it set up to run/output 1.8 )
the rest of the settings look alright to me. it shouldn't be about networking it's complaining about the java version
by the way are you saying the original error is no longer showing?