I'm following a simple lanterna demo tutorial using maven. The problem is that the program runs perfectly using IDE intellij, but wont compile from terminal. Do I need to include something more in my pom.xml file?
My file Rouge.java opens a simple window with hello world. Error message when trying to compile file from terminal (javac Rouge.java) includes error: package com.googlecode.lanterna.terminal does not exist.
When you run javac/java command on Rogue.java it tries to look for lanterna-3.0.1.jar dependency which is not be available or neither set in the classpath. With the current pom.xml you shared you will still get java.lang.ClassNotFoundException: com.googlecode.lanterna when you execute(mvn install) it on the .jar file. There are couple of options you could look:
df19127ead