How to build jars from IntelliJ properly?

前端 未结 20 2467
盖世英雄少女心
盖世英雄少女心 2020-11-22 01:14

I have a project that contains a single module, and some dependencies. I\'d like to create a jar, in a separate directory, that contains the compiled module. In addition, I\

20条回答
  •  一生所求
    2020-11-22 01:53

    When i use these solution this error coming:

    java -jar xxxxx.jar
    

    no main manifest attribute, in xxxxx.jar

    and solution is:

    You have to change manifest directory:

    \src\main\java 
    

    change java to resources

    \src\main\resources
    

提交回复
热议问题