This site requires JavaScript, please enable it in your browser!
Greenfoot back
Upupzealot
Upupzealot wrote ...

2013/2/23

Report 2 Bugs of Greemfoot 2.2.1

Upupzealot Upupzealot

2013/2/23

#
1.About inner class Once you have coded an inner class, compiled once, the "Test$Inner.class" was generated in the project file. And than you makes some change to it (even delete the inner class), the "Test$Inner.class" still exsists and would cause error when you export the scenario to a jar file or web page. Guess that's because of the Inner class was not deleted by "remove" method in the Greenfoot IDE. 2.About LoadanImage form path. It happens when the scenario is exported and the Image was not DIRECTLY in the image folder, for example: image/test/board.jpg Would that happens on your Greenfoot? If so would that be fixed? @dav @mik @Someone in Greenfoot Team
Upupzealot Upupzealot

2013/2/23

#
A demo for the load file error here. http://www.greenfoot.org/scenarios/7528
Upupzealot Upupzealot

2013/2/23

#
For the inner class error, I can fix that by deleting all the ".class" files manually and compile again. Though it cost me 3 hours to find out the reason. I'm just imaging what if Exported Greenfoot could make a log.txt file for the runtime errors like exe4j : D
Upupzealot Upupzealot

2013/2/23

#
3.another Problem about setColorAt and getColorAt method see this topic: Problem about setColorAt & getColorAt method
davmac davmac

2013/2/25

#
For (2), you need to specify the image path as "test/board.jpg" rather than "/test/board.jpg". Remove the leading slash.
davmac davmac

2013/2/25

#
For (1), I can't reproduce this. I made an inner class, compiled, removed the inner class from the source, re-compiled, and exported to a jar file. It ran fine.
davmac davmac

2013/2/25

#
For (3) see my response in the other discussion.
Upupzealot Upupzealot

2013/2/26

#
@davmac I can't reproduce the inner class problem also, but you can find that even the inner class is deleted from the source code, the compiled classes files was still in the project folder. And you are right, "test/board.jpg" works good, but "/test/board.jpg" only works in Greenfoot. MayI ask why?
You need to login to post a reply.