my dog learned polymorphism
The moose likes Java in General and the fly likes JAR and Class file reader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JAR and Class file reader" Watch "JAR and Class file reader" New topic
Author

JAR and Class file reader

Zaafir Barahim
Ranch Hand

Joined: Dec 12, 2006
Posts: 36
How do i read the content and modify the content of a Jar file and how can i read and modify the code in a Class file
Nikhilesh
Greenhorn

Joined: Dec 16, 2006
Posts: 2
I never tried to edit a class file. But used to view the contents usings
jclasslib viewer.

http://www.ej-technologies.com/products/jclasslib/overview.html

Jar file is just like a zipped file. You can open it using programs like
winRar
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
For both working with class files and working with jar files there are multiple tools you could use. Which one is appropriate depends on what you're trying to do - care to tell us about that?


Nikhilesh,

on your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JAR and Class file reader
 
It's not a secret anymore!