Failing to run jar file from command line: “no main manifest attribute”
Try to run
java -cp ScrumTimeCaptureMaintenence.jar Main
Java jar file no main manifest attribute
jar cfe Hello.jar Hello Hello.class Hello.java
will do it for you. You need to point the -e
parameter to the main class so that jar
knows how to make it executable. This is easier than making your own manifest
SpringBoot no main manifest attribute (maven)
Try adding repackage
goal to execution goals.
Otherwise you would need to call the plugin explicitly as mvn package spring-boot:repackage
.
With the goal added, you have to call only mvn package
.
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.places.Main</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
Related Topics
Example Images For Code and Mark-Up Q&As
Find Div Element by Multiple Class Names
Difference Between Jsonobject and Jsonarray
How to Ping External Ip from Java Android
Download a File With Android, and Showing the Progress in a Progressdialog
How to Pass an Object from One Activity to Another on Android
Setting Singleton Property Value in Firebase Listener
How to Launch an Activity from Another Application in Android
View'S Getwidth() and Getheight() Returns 0
How to Call a Method After a Delay in Android
Create a File from a Photo Uri on Android
How to Allow All Network Connection Types Http and Https in Android (9) Pie
How to Use Java 8 For Android Development
Firestore Whereequalto, Orderby and Limit(1) Not Working
Why Is Super.Super.Method(); Not Allowed in Java
How to Create a Generic Array in Java