No main manifest attribute - IntelliJ

joey7492

I know there have been many posts on this but I can't seem to find an appropriate solution. So I have my 3 classes, one with a main and from IntelliJ everything runs fine. But I cannot seem to run the .jar file that I have created.

I also have a manifest file that contains the following:

Manifest-Version: 1.0
Main-Class: beanParser

I created the jar through the build option in IntelliJ. Any suggestions?

Thanks

Ronald Duck

Have you considered the following link?

For Maven have a look at the following clip or this one.

Here's a snipped I used in my project:

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <version>2.4</version>
            <configuration>
                <archive>
                    <manifest>
                        <addClasspath>true</addClasspath>
                        <mainClass>your.main.Clazz</mainClass>
                        <classpathPrefix>lib/</classpathPrefix>
                    </manifest>
                </archive>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>2.8</version>
            <executions>
                <execution>
                    <id>copy-dependencies</id>
                    <phase>package</phase>
                    <goals>
                        <goal>copy-dependencies</goal>
                    </goals>
                    <configuration>
                        <outputDirectory>
                            ${project.build.directory}/lib/
                        </outputDirectory>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Creating Jar with Intellij 2016 - No main manifest attribute

From Dev

Can't specify main manifest attribute in Intellij

From Dev

JMH no main manifest attribute

From Dev

"no main manifest attribute"

From Dev

maven: no main manifest attribute

From Dev

"no main manifest attribute"

From Java

Gradle- no main manifest attribute

From Java

SpringBoot no main manifest attribute (maven)

From Dev

Java jar - no main manifest attribute

From Dev

SpringBoot no main manifest attribute (maven)

From Dev

No main manifest attribute, in gdx-setup.jar

From Dev

scala sbt assembly "no main manifest attribute"

From Dev

No main manifest attribute, in server.jar

From Dev

Run java jar - no main manifest attribute error

From Dev

openshift: no main manifest attribute in jar maven project

From Dev

no main manifest attribute (But I have the manifest file in the jar)

From Dev

Failing to run jar file from command line: “no main manifest attribute”

From Dev

Java can't execute jar file no main manifest attribute

From Dev

no main manifest attribute error after add volley.jar library

From Dev

"no main manifest attribute" when trying to execute fat jar

From Dev

"no main manifest attribute" after downloading a .jar file in Java

From Dev

Docker-compose: no main manifest attribute in /app.war

From Dev

no main manifest attribute maven build even after adding class path and main class

From Java

Fat JAR not working. "No Main Manifest Attribute". Tried POM file, still failing

From Dev

Failed to load Main-Class manifest attribute while running java -jar

From Dev

SecurityException during executing jnlp file (Missing required Permissions manifest attribute in main jar)

From Dev

Why do I get "no main manifest attribute" building a jar from Eclipse antfile?

From Dev

I Can´t start jetty from command line, it want´s a Main-Class manifest attribute

From Dev

How to produce a jar file for existing maven project without (no main manifest attribute)?

Related Related

  1. 1

    Creating Jar with Intellij 2016 - No main manifest attribute

  2. 2

    Can't specify main manifest attribute in Intellij

  3. 3

    JMH no main manifest attribute

  4. 4

    "no main manifest attribute"

  5. 5

    maven: no main manifest attribute

  6. 6

    "no main manifest attribute"

  7. 7

    Gradle- no main manifest attribute

  8. 8

    SpringBoot no main manifest attribute (maven)

  9. 9

    Java jar - no main manifest attribute

  10. 10

    SpringBoot no main manifest attribute (maven)

  11. 11

    No main manifest attribute, in gdx-setup.jar

  12. 12

    scala sbt assembly "no main manifest attribute"

  13. 13

    No main manifest attribute, in server.jar

  14. 14

    Run java jar - no main manifest attribute error

  15. 15

    openshift: no main manifest attribute in jar maven project

  16. 16

    no main manifest attribute (But I have the manifest file in the jar)

  17. 17

    Failing to run jar file from command line: “no main manifest attribute”

  18. 18

    Java can't execute jar file no main manifest attribute

  19. 19

    no main manifest attribute error after add volley.jar library

  20. 20

    "no main manifest attribute" when trying to execute fat jar

  21. 21

    "no main manifest attribute" after downloading a .jar file in Java

  22. 22

    Docker-compose: no main manifest attribute in /app.war

  23. 23

    no main manifest attribute maven build even after adding class path and main class

  24. 24

    Fat JAR not working. "No Main Manifest Attribute". Tried POM file, still failing

  25. 25

    Failed to load Main-Class manifest attribute while running java -jar

  26. 26

    SecurityException during executing jnlp file (Missing required Permissions manifest attribute in main jar)

  27. 27

    Why do I get "no main manifest attribute" building a jar from Eclipse antfile?

  28. 28

    I Can´t start jetty from command line, it want´s a Main-Class manifest attribute

  29. 29

    How to produce a jar file for existing maven project without (no main manifest attribute)?

HotTag

Archive