Software works in Intellij but not as a jar file
已回答
So I'm trying to build an Arctifact which is an Executable Jar and before I add a maven dependency to Dynamic Reports, my jar was building fine but then when I added it and built my jar, java can't find or load my main class which makes no senses because it was building fine before. Is there a way to find what my jar is missing? Is there a file in my jar that would change the "root" folder in my jar instead of the "real root"?
Thanks for the help
Baskwo
请先登录再写评论。
It could happen if you package some jars inside which are digitally signed.
See also http://stackoverflow.com/a/42200519/104891 for the sample project.
Thank you for your answer but I do extract them into the jar :/

Please check https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000120864/comments/115000144030.
See also https://stackoverflow.com/questions/44283408/is-it-possible-to-get-intellij-idea-to-generate-an-executable-jar-manifest-like.
Seems like Bouncy Castle jars are signed. Is there a way in Intellij to remove the .sf and .dsa files of the artificat?
Or what do I need to do to accept the signed files
So my solution was to not extract Bouncy Castle and just put the BouncyCastle Jar into mine from Intellij. Seems to work now.