X
X
xbs72018-12-11 18:08:03
Java
xbs7, 2018-12-11 18:08:03

How to solve packing problem in exe JSOUP?

Hello. Faced the problem of packing the program in exe (jar).
The essence of the program is simple: there is a textfield into which a word is entered. Further, this word is placed in the link and the necessary information is parsed through this link. But, after creating an exe or jar file, parsing does not occur, that is, it opens without errors, but when you enter a word, nothing arrives in response. In ide it works fine.
The program uses the JSOUP library, which, as I understand it, was simply not added to the list of libraries when creating the executable file (I hope I formulated it clearly), since I did not see it in the folder with the executable file, and therefore cannot be executed normally.
Maybe I added it wrong in the idea. Therefore, I ask for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2018-12-11
kuzmin @sergueik

maven? then
```
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
```

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question