• Post Reply Bookmark Topic Watch Topic
  • New Topic

class file viewer  RSS feed

 
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?
 
Rancher
Posts: 42975
76
  • 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.
 
Java Cowboy
Sheriff
Posts: 16079
88
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!
 
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 ....
 
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.
 
I've never won anything before. Not even a tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!