fusesource / jansi

Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.
http://fusesource.github.io/jansi/
Apache License 2.0
1.11k stars 140 forks source link

"package does not exist" error #129

Closed arsari closed 5 years ago

arsari commented 6 years ago

Hi,

  1. I download jansi-1.17.1.jar and extract the content.
  2. I copied the org directory to my java file directory.
  3. I add the statement import org.fusesource.jansi.AnsiConsole; in my java file but I get the message in NetBeans package org.fusesource.jansi.AnsiConsole does not exist.
  4. I open my cmd prompt and write java -cp . org.fusesource.jansi.AnsiConsole and get the error message that AnsiConsole class do not have a main method.
C:\Users\asantiago\OneDrive\Coding_Work\Java-Practice>java -cp . org.fusesource.jansi.AnsiConsole
Error: Could not find or load main class org.fusesource.jansi.AnsiConsole

How can I import the package for use in my program?

khmarbaise commented 6 years ago

Are you using things like Maven ? It does not look like that...

gnodet commented 5 years ago

Try using

> java -jar jansi/target/jansi-1.17.1.jar