Problem printing multiple lines

I’m running into problems

I have created the correct links, in system.err.println it prints fine however when i use system.out.println after one line the program stops ans says it is missing one link, which is being printed in the error output.
How should i work around this?