Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.03 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.03 KB

Prerequisite

  • Java 8 (Because it's new and shiny)
  • Javen 3

Building

  • mvn clean package creates a fat jar under target/asciicam-1.0-SNAPSHOT.one-jar.jar

Running

  • java -jar asciicam-1.0-SNAPSHOT.one-jar.jar <IMAGE> <SCREEN WIDTH>
  • ex: java -jar asciicam-1.0-SNAPSHOT.one-jar.jar foo.jpg 80

Example

Before

After

Troubleshooting

Error invalid target release: 1.8 during maven build

If you see this error message during maven build:

[INFO] BUILD FAILURE
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project lazyseq:
Fatal error compiling: invalid target release: 1.8 -> [Help 1]

It means you are not compiling using Java 8. Download JDK 8 and let maven use it:

$ export JAVA_HOME=/path/to/jdk8

Inspiration for this code came from asciicamera