N
N
narwhale2017-06-19 20:13:19
Java
narwhale, 2017-06-19 20:13:19

When opening a project Java artifact, some libraries do not work, what should I do?

In IntellIJ IDEA IDE, I connected all the necessary libraries, I create an artifact, I run it through the console, it writes errors that these libraries are not there, I don’t see what could be funny?
The MailAPI library seems to be the only one. Steamed with Google, danced with a tambourine for 2-3 hours, does not work.
The funny thing is that when you run from the IDE, everything works fine ...
Please help)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
click_f, 2017-06-19
@click_f

Auto import of maven dependencies Enabled?
What and how do you assemble the project?
Apparently, the collector (or you) did not load the necessary libraries, or loaded them in the wrong place.
Are there any dependencies in the provided scope?

L
Labunsky, 2017-06-19
@Labunsky

If you don’t know how to use your hands, then you should create an artifact in an idea from a module with dependencies (such an item when you click the plus sign), indicating at the same time to put the dependencies inside the artifact, or link them through the manifest and put them side by side

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question