java class file

i am writing java applet, when i compile my java file, i get a class file for it, but there occur a "$" symbol in my java class file, meaning that i can't view my java class file when i put it into the html file, how i can solve it, please tell me how to do.
In my java applet, i use the AWT  creating my java applet, and i use the jdk 1.2.2, therefore there have a warning about overrides a deprecated API. How i can solve? Please tell me the solution.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi jeannieyeap,

 $class, will appears automatically, if you have inner class in your main class.

just put codebase="/classes" in your html

depreceated means, there was a new API equivalent, for compability reason, You still can use that API

 hope this helps

you should still have a class file called by the proprer name still, the classes with $s in are inner classes as setiawan says. just upload them all, and refer to the main class file as normal.

the other classes are called on by the main file anyway.

jeannieyeapAuthor Commented:
Dear setiawan and BillyAbbott,
After i finish my java applet, i will upload it on a webpage, so is this symbol "$" in my inner classes ,will give me any trouble to do that?
hi jean!

You need to refer to the main outer class only. Otherwise you can jar all the related files into some xx.jar and refer this jar file in your html code. It will work.
  As previously all the guys said,$ class files are your innerclass files.
   public class Exam
     class Sample
After the compilation you will get Exam.class and Exam$Sample.class.
   And even if u use like this
  addActionListener(new ActionHandler())
  This will also creat $ class files.
You can jar all the .class files into a single jar file,
and  in applet tag
  <applet code=MainApplet.class ..
  You specify the main applet class file in code, and in the archive property specify that xx.jar file.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.