Originally posted by Shrinivas Mujumdar:
Thanks for reply first of all, but the point is, if i own a company i will have a source code with me, but i do not want others to have a look at it.(i.e. i am not going for open source code), how i can do that?
Why some other languages support prvention of decompilation & Java is not supporting that?
i'm not entirely sure what you mean by "have a source code with me" in this question. if you mean that a piece of software you develop will be shipped to your customers with its .java source code files included, then decompilation will be the least of your worries.
i'm not too sure what you mean by "support prevention of decompilation", either. i know of some languages that try to make a decompiler's work slightly harder, but i know of no way to completely prevent decompilation - i think that is theoretically impossible, at least if you want your compiled code to be executable.
your best bet might be to rely on legal recourses, i'm afraid. technological measures, like obfuscating object code to make it trickier to decompile, aren't very good at limiting what human beings can do; the humans whose behaviour you're trying to control (whether they will decompile your program or not) are not very strongly bound by what their computers can or cannot do. if they want to decompile your code, and if this wish is strong enough in them, they can always find a way to do it - the force of the law can make them want it a bit less.