Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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
)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading