| Export to runnable jar is missing projects [message #1848369] |
Mon, 29 November 2021 20:02  |
Eclipse User |
|
|
|
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: Mon, 29 November 2021 21:31] by Moderator
|
|
|
|
| Re: Export to runnable jar is missing projects [message #1856419 is a reply to message #1856375] |
Thu, 08 December 2022 18:53  |
Eclipse User |
|
|
|
Thank you very much for posting this!
This solved my problem!
Joseph
(I don't know if this is a feature or a bug, but I **would** think that if I want to export a 'runnable Jar', well, then I want to export a runnable jar.)
My scenario: I develop in one environment (happens to be a local machine, with Eclipse) and I go live on AWS, on a small, headless machine. I installed there Java (yes, I know that in order to run a jar, I need Java) but I didn't install any of the referenced libraries. Why would I if Eclipse (on better days) can do it for me.
|
|
|
Powered by
FUDForum. Page generated in 0.05284 seconds