5

I have a project that works perfectly fine when I run it in eclipse. However when I export it as a runnable Jar, it gives me an older version of the project, from a couple days ago.

I have no idea why or how it is exporting the older code and files that as far as I knew don't even exist any more.

I tried doing Project > Clean but it didn't work

Is this a known eclipse bug?

Any suggestions?

M. A. Kishawy
  • 5,001
  • 11
  • 47
  • 72

1 Answers1

0

Here are some general suggestions. Hopefully one or more of them will do the trick:

  1. The most obvious one which should work is doing a project clean.

enter image description here

  1. Manually delete the compiled java (ex: foo.class) from your project bin folder.
  2. Delete the Refactoring History from within eclipse. Right click on the project > Properties > Refactoring History

enter image description here

  1. If all above steps fail, you can create a new project and then copy & paste your code into new Java files.
M. A. Kishawy
  • 5,001
  • 11
  • 47
  • 72