• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class file viewer

 
vivien siu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, is there any software/freeware to view .class files?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The simplest option is to use the "javap" command line tool that comes with the JDK.

If you're looking for a GUI, check out jclasslib.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15205
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what exactly do you mean with "viewing .class files"?

There are a number of Java decompilers available, which can translate the byte code in a class file back to source code (or something that looks like the original source code).

For example: DJ Java Decompiler, JAD. Search for "Java decompiler" on Google for more.
 
vivien siu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yup I was looking for a java decompiler software, thanks!
 
Srinivas Kalvala
Ranch Hand
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Some people obfuscate the code, so dont believe the code generated by the decompiler as such. Just have some hands on work ....
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And remember that it is illegal and/or immoral to decompile a third-party class file, to try to replicate, crack or alter it, against the wishes and/or licence of the third party.
 
vivien siu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's ok Peter, I'm just looking at some old codes done by my colleagues. There are only .class files available in the server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic