Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get .java file from .class file?

 
Pawan Rao
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get .class file from .java, we have javac.
But, how do we get .java file if we have only the .class file?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://members.fortunecity.com/neshkov/dj.html
 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Java Decompiler tools for this. One such tool is jad.
Search Google for jad.
 
Pawan Rao
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
 
Gadi Reddy
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
By using Java Decompiler we will get .java file .
but the thing is we are not getting exact java file( but we will get whatever we write the java file apart from that we will get some system generated code also , but no problem.
Regards,
Raghu
 
Ashan Ranasinghe
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you could also use jcavaj

thats a cool tool.

also the jdk comes with its own tool but thats not so good

Ashan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic