

Tomcat Start Error: Internal error (): Duplicate key.Vue Syntax Error: Error: PostCSS plugin postcss-pxtorem requires PostCSS 8.SpringBoot Project Package to jar Error: ClassNotFound….Unable to find a single main class from the following candidates.Spring Boot Package Error: Failed to execute goal :maven-resources-plugin:3.2.0.SpringBoot Package Error: Failed to execute goal :maven-resources-plugin:3.2.0:resources (default-res.Remove dependency-reduced-pom.xml file when packaging Maven project.Intellij Pack the jar file error: “: Invalid signature file digest for Manifest main attrib.Maven no main manifest attribute when generate jar for project.no main manifest attribute, in demo-1.0.jar.No main manifest attribute when running Java – jar.Packaging can also be specified in the following way to directly run the jar file Java – jar XXX. The command is as follows:įor example: Java – CP xxx.jar com.helloworld If you want to specify the class you want to run at runtime, you should use – CP/– classpath to specify it. Because – jar means that the following jar package has a main class to run independently, you need to specify this class when you package it into a jar package Normally, when Java is packaged as a jar package, you need to specify the main class item in manifest.mf to find the corresponding main class when running Java – jar xxx.jar. When executing Java – jar xxx.jar com.helloworld under Linux system, you will often be prompted: no main manifest attribute, in xxx.jar
