Java – why does eclipse use older versions of code when exporting runnable jars?
I have a project that works perfectly when I run in eclipse However, when I exported it as a running jar, it gave me an old version of the project a few days ago
I don't know why or how to export old code and files. As far as I know, they don't even exist anymore
I tried to clean it, but it didn't work
Is this a known eclipse error?
Any suggestions?
Solution
The following are some general recommendations I hope one or more of them can do this:
>The most obvious should be clean projects
>Manually delete the compiled Java (for example: foo. Class) from the project bin folder. > Delete the refactoring history from eclipse Right click item > Properties > refactor history
>If all the above steps fail, you can create a new project, then copy & paste the code into a new Java file