• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

can we decompile and get the orginal source code,is it possible?

 
Ranch Hand
Posts: 1087
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it possibe to decompile the class file and get the source code???if yes how come java becomes security concious?
 
Sheriff
Posts: 21758
102
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't get the source code as is, because all comments are removed, and generic information is also gone. Most of it is still available. You can make it harder by using obfuscators but all those do is make it hard to read the decompiled code, not impossible.
 
author
Posts: 23833
140
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Decompiling an executable, is *always* an option -- regardless of the program. The JVM needs to open and read class files, so hence, the class files can be opened by a decompiler. This is also true for other languages. Something has to be able to read and run the program, hence, another thing should be able to read and decompile it.

There is no way to stop decompilation. The only thing that can be done is to make it harder. In the case of Java, there are ofuscators that does weird things to the class files, so that they will still run, but will look weird when they are decompiled. But even then, a good programmer can easily get the jist of the decompiled code.

Henry
 
The moustache of a titan! The ad of a flea:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!