When i execute my applet using javac or eclipse, two class files are created for the same file. one is named filename.class and the other filename$1.class what is the second file for? It has a size of 1kb while the first has a larger size of around 60kb.
What a great example this is of why we want you to Carefully Choose One Forum for each post here at the Ranch: we're having the same conversation twice, in two forums. The other half is here. Since that one is off-topic for the forum it's in, I'm going to close it, and leave this one open for followup.
It really woudn't be desireable to remove this class. That would most likely cause the program to throw an error when it tries to look up a class definition that's not there. The only reason this might not happen is if you don't happen to utilize whatever functionality requires the anonymous class. You could try it and see. But most likely, you simply can't remove these anonymous class files.
Your main options are:
1. Solve the upload problem so that you can upload the $ file. 2. Put all the classes you need within a JAR file, and just upload the one JAR file instead. 3. Rewrite the Java code to eliminate any anonymous classes or other nested classes.