Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Packaging!

 
eLL Pascual
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does it mean when you have this in your folder?

notepad$1.class
notepad.class

I used to ignore the first one but I saw a fully working jar file with all ten ...$10.class inside. So now I am wondering if it is necessary to include all of them in my jar file 'coz until now I haven't
made my works jarred and working. I have them jarred but working no.There is always an error. Thanks!
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That looks like an anonymous inner class. For example, if you do something like this...

Does that make sense?
[ June 04, 2008: Message edited by: marc weber ]
 
Rob Spoor
Sheriff
Pie
Posts: 20608
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or more often something like
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic