Open a jar file in a ansicon console through a bat file

101 Views Asked by At

I'm currently working on a new project. Since I use ANSI in this java project I realised I can't use these colors in a windows cmd.

I already tried various ways but none of them helped.

So, what do I want to do? I want to run my jar file through a bat file in a new cmd but not the cmd from windows. I want to use the ansicon cmd (ANSICON GitHub).

So, I already tried this:

START ansicon.exe /k java -jar myjarfile.jar

But this doesn't worked at all.

I hope you can help me, many thanks in advance!

0

There are 0 best solutions below