• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to view CAFEBABE in class file?  RSS feed

 
Radiya Sojitrawala
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I opened my .class file in notepad but i dont see cafebabe as the first 4 bytes. what do i need to do?

TIA
Radiya
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to dump the file contents in hexadecimal. CAFEBABE is actually 0xcafebabe.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the reasons I use UltraEdit-32 as a programming editor is the ease of switching between text and hex display. Also handy for finding those annoying "smart" punctuation marks that MS Word leaves in text files.
Bill
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Time to stick up for your favorite text editor ... KEDIT (probably out of business now) also has nice hex view and editing mode. In Windows you can use the ancient DEBUG command, too.

Rename class file to .cla - only seems to recognize 3 char extension!
 
Rick O'Shay
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the old days, ed reigned supreme. Then they came out with those fancy pants multi-line editors and there was no turning back. Currently a huge fan of vi.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!