Results 1 to 6 of 6

Thread: can javap not reveal the whole program

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    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?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    Re: can javap not reveal the whole program

    thanks for the reply

    so javap produces assembler not java code, correct?

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: can javap not reveal the whole program

    Yes.
    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.

  5. #5
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123

    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.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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
  •  



Click Here to Expand Forum to Full Width