I finished one of my projects a few days ago and found out that when I export it to a JAR file, it freezes after about an hour of running. This problem does not appear on normal Greenfoot, just on the JAR file. I tried every technique I could think of, but it still freezes.