how can i build an java app w custom libs (Intellij)

java app dosent compile with custom libraries (Intellij)

my question is when i run my java app in my environment the custom lib works
but when i build it and run it outside of the environment it dosent work

(
its supposed to show discord rpc when build but it dosent
thoe it works when in an IDE
)

any help would be appreciated.

>Solution :

Custom jars are not included in build.
If application is build by maven you should:

  1. Depoly your custom jar to repository like: https://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html
  2. Add this jar as usual dependency for project, then build it and should work.

If you mean to have this project "portable" for other users let me know, will show you sollution, but I need more details.

Leave a Reply