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

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>