Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6332243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:13:32+00:00 2026-05-24T18:13:32+00:00

I have a big project to debug, and I was wondering if there is

  • 0

I have a big project to debug, and I was wondering if there is anyway I could use to change the System.out.println method in the output of eclipse

for example :

System.out.println("I want this to be red");
System.out.println("I want this to be blue");
System.out.println("I want this to be yellow");
System.out.println("I want this to be magenta");

for more readability.

EDIT

with sysout I have this
sysout

with syserr I have this
syserr

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:13:32+00:00Added an answer on May 24, 2026 at 6:13 pm

    Within Eclipse, the simplest approach would be to use System.err.println for lines you want to be in red – I believe that’s the default. (You can change it in Preferences -> Run/Debug -> Console).

    That difference won’t show up when running in a real console of course, but I don’t think the Eclipse console supports ANSI colour escape sequences etc.

    EDIT: For the Windows console, I’d expect ANSI escape sequences to work. It’s not hugely portable, but if that’s not a problem, you could just create a class to encapsulate the escape sequences appropriately, so you could call something like:

    ansiConsole.printRed("sample line in red");
    ansiConsole.printBlue("sample line in blue");
    

    (I’d probably make those methods return back to whatever the “current” colour was after each call.)

    EDIT: As noted in comments, the Jansi library already exists, so you might as well use that. It doesn’t have the methods described above, but I’m sure it’ll still do what you want…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a big project that also use many libraries. With jstack I found
I have very big Java a project. I want to change his type from
I have a set of makefiles I use to build a 'big' C project.
I have a big project compiled into libProject.so-file (shared library), I made some modules
We have a big C++ project that's compiled as native unmanaged code. We need
I really have big problems with importing an extern C-Library to my existing C++-Project.
I have big system that make my system crash hard. When I boot up,
I have a big project that uses maven and I'm creating the project's jar.
Because I have a big project I must generate the UML for this. Writing
I know I can do it with GLUT. But, I have a big project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.