Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(item) is not on the projects build path

Tags:

java

as far as I can see, both craftbukkit and UHC are on the buildpathenter image description hereI decompiled a jar, imported the files into eclipse, and edited a few key java files. Whenever i try to export however, it gives me a

"JAR creation failed. See details for additional information. UHC-2.4.1/META-INF/MANIFEST.MF was replaced by the generated MANIFEST.MF and is no longer in the JAR. uk/co/eluinhost/UltraHardcore/features/core [in UHC-2.4.1] is not on its project's build path Unable to get package fragment root: UHC-2.4.1/uk/co/eluinhost/UltraHardcore/features/core/GoldenHeads.java uk/co/eluinhost/UltraHardcore/features/core [in UHC-2.4.1] is not on its project's build path" error. 

I have searched far and wide for a solution, but have nor found one. I have tried refreshing the project etc, and all the necessary libraries are specified. Please help? Additional information: If I edit any other class (just add a space then delete it and then save) that class gets added to the error message as well.


1 Answers

I had the same issue. I noticed that all of the files that were listed as "not on the project's build path" were open for editing in Eclipse. Once I closed all of the open files, I was able to export the jar.

I assume they are locked for editing and so not exportable.

like image 104
Tom Cronin Avatar answered Dec 17 '25 03:12

Tom Cronin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!