Export to runnable jar is missing projects [message #1848369] |
Tue, 30 November 2021 01:02 |
John Sijm Messages: 2 Registered: November 2021 |
Junior Member |
|
|
Hello,
I just using eclopse Version: 2021-09 (4.21.0) Build id: 20210910-1417
I want to export my project as a runnable jar. It is a JPA project.
My project uses also other projects and these are added in the Projects tab in the Build Path and checked (if necessary in the Order and Export tab also in the Build Path).
When I exported this project I got a classNotFoundException.
And after investigation I saw that when I opened the jar with 7Zip that the projects ar missing. I tried all the three options which you can choose during the export (Extract, Package , Copy) and all runnable jars give the same results.
In a earlier version of Eclipse f.i. 2020-09 it worked.
But lately my computer crashed and I had to reinstall everything and also eclipse. Maybe this had impact on the way Export works.
I found out that if I create a new JAVA Project the export works but as soon as I converted it to a MAVEN project it doesn't work anymore the other Projects from the build path are not in the jar anymore .
I hope someone can give me some tips to get it work again.
Thanks,
John
[Updated on: Tue, 30 November 2021 02:31] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03606 seconds