No Java Shell output from System.out.println("Hello World");

Please login with a confirmed email address before reporting spam

Hello, I have the windows version of COMSOL but System.out.println("Hello World"); doesn't print to Java Shell window, in contrast what is said in the Reference PDF. Do I have to redirect System.out. to Java Shell Window manually before using System.out. ??

I tried also with .flush() without success.

When using System.out.println("Hello World"); directly in JavaShellWindow-> Run it is functioning, but not from (global) method, like said above.

Nice Greetings


0 Replies Last Post 2025年3月16日 GMT-4 06:41
COMSOL Moderator

Hello Sebastian Müller

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.