|
-
Oct 28th, 2006, 11:54 AM
#1
Thread Starter
Frenzied Member
can javap not reveal the whole program
Hello
I have started coming to grips with java, and came across javap.
I was wondering if javap does not reveal all the code written by the coder. and just anyone can using the byte code plagiarise the source code. or is there something that prevents plagiarism from happening?
-
Oct 28th, 2006, 01:31 PM
#2
Re: can javap not reveal the whole program
javap disassembles, it doesn't decompile. You get the equivalent of machine code assembly, except that IMO JVM assembly is even more unreadable.
There are also decompilers for Java, but they never restore the exact source code. That is impossible, as there is an n:m mapping from source code to assembly.
There are some limited ways of scrambling .class files to make decompilation harder, but it cannot be prevented completely. But then, the same applies to machine executables.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 29th, 2006, 06:19 AM
#3
Thread Starter
Frenzied Member
Re: can javap not reveal the whole program
thanks for the reply
so javap produces assembler not java code, correct?
-
Oct 29th, 2006, 10:44 AM
#4
Re: can javap not reveal the whole program
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 7th, 2006, 12:01 AM
#5
Frenzied Member
Re: can javap not reveal the whole program
i came across a prog called dj java decompiler. it is a demo software copy that i have but then even as a demo it works like a charm on class files. i made some java class files(my own code) and tested the software in it and lo-behold, even the variable names are the same. so maybe java class are not so difficult to disassemble as people think.
-
Nov 7th, 2006, 06:08 AM
#6
Re: can javap not reveal the whole program
Did you compile your Java files with or without debug info? How complicated was the code?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|