And click the link "Create package" in the app descriptor Overview tab.
But no files from the folder "classes" appear in the generated jar file

Then I decide to copy the contents of "classes" to the new folder "precompiled" and add this folder to java build path/Source, in build.properties change "classes/" to "precompiled/"
Now when I generate a jar file, foo.png appears in it, but not a.class