A small program I have written in Kotlin for learning purposes
# build jar using the gradle wrapper
./gradlew jar
# you can name and move it wherever you want
mv build/libs/*.jar ./image-to-ascii.jar
# let's run it
java -jar image-to-ascii.jar cat.jpg ascii-cat.txt
Here is a side by side comparison of the cat image I used and the resulting ASCII version