• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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
 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic