• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Class files to .java

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
I have some .class files and i want to see the code or functions associated with the java class..
Any one tell me how can i convert to .java file of to view all the methods associated with this?
Thanks in advance
Vijay
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy! A class-to-source decompiler doesn't ship with the Java SDK, but there is a disassembler. Try this at the command-line:
javap -c TheClassName
This gives you the bytecodes in a readable form; it doesn't reverse it back to .java. There are programs that *can* try to get the program back to a useful .java file, but I can't remember what they are at the moment.
The bytecodes can be quite tedious, but also really cool to study. Occasionally, it can be useful to see what the compiler is really doing with your code.
cheers,
Kathy
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are many DeCompilers available in the market. DJ Java Decompiler is one among them. You can download it for free from : http://members.fortunecity.com/neshkov/dj.html
Hope this helps !!
Best Regards,
ArVind
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
u can also search for jad
 
Vijayakumar Chinnasamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks to
Kathy, Arvind and Tausif Khanooni
I downloaded DJ java Decompiler and works fine.
Not yet tried Jad, but looks better.
Thanks again
Bye
Vijay
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic