I’m trying to run this java application with maven from command line on ubuntu with OpenJDK 13
openjdk version "13.0.2" 2020-01-14 OpenJDK Runtime Environment AdoptOpenJDK (build 13.0.2+8) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13.0.2+8, mixed mode, sharing)
The project is created with Intellij Idea.
I guess I’ve made the build successfully with these commands
git clone https://github.com/danvega/httpclient-tutorial.git cd httpclient-tutorial mvn package
However, I don’t know how to run the application from command line.
I tried these commands
cd target/classes java dev.danvega.Application
and got this error
Error: Unable to initialize main class dev.danvega.Application Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/type/TypeReference
What am I missing?