If I have a .class file, how do I open it/view the source code? I think I have to decompile it first, but how the heck do I do that?
Asked
Active
Viewed 2.3k times
1 Answers
10
Just drag the .class file into your ide and it should show you the contents of that file, or you can use this http://www.javadecompilers.com/ to decompile the .class file.:)

beastlyCoder
- 2,349
- 4
- 25
- 52
-
A `.class` file contains Java Bytecode. What IDE are you using that shows Java source code when you drag a .class file in? Or are you being ironic? Sorry then ;) – dtell Apr 02 '17 at 22:06
-
When I open a .class file in eclipse it shows the contents of the .class file – beastlyCoder Apr 02 '17 at 22:07
-
-
lol I actually up untill this point you could do it any other way i guess that's the beauty of some IDEs – beastlyCoder Apr 02 '17 at 22:10