devslm / proguard-spring-boot-example

Proguard Spring Boot Maven Plugin Example
Apache License 2.0
155 stars 60 forks source link

Could not find or load main class com.slm.proguard.example.spring.boot.Application #2

Closed Jerrick closed 5 years ago

Jerrick commented 5 years ago

After packaging the project, I run it on mac and centos,but get this exception: Error: Could not find or load main class com.slm.proguard.example.spring.boot.Application

My command is: java -cp spring.boot.jar.:$CLASSPATH com.slm.proguard.example.spring.boot.Application

My env is based JDK8,so I modifed the pom.xml

diff --git a/pom.xml b/pom.xml

- 11 Thanks
devslm commented 5 years ago

Thanks fo the issue. I missed this info in the README file and now added a description about editing the java.version parameter in accordance with the using JDK version.