How can I view the source code of a java application?

I am planning to write a program in java, but I need to view another application’s source code so that I can have ideas on how to make one.
I need help. Thanks!

Related posts:

  1. Lotus Domino: Application Integration – A Programmer View
  2. What Open-Source Application Software Is Available for Apple Mac Hardware?
  3. How can I edit open source code and building the application?

2 Responses to “How can I view the source code of a java application?”

  • Hey look, it's ME!!!:

    You cant just view the source code of a program unless they let you see it (download it). You can download source codes of open source programs (google it), under the condition that you will distribute the applications YOU create using THAT source code for free. See open source definition:
    http://en.wikipedia.org/wiki/Open_source#The_Open_Source_Definition
    Open source communities are very useful for people like you.

    The alternative is called reverse-engineering. Its illegal and doesn’t word 100%

  • David H:

    I’ve used software called ClassMapper to reconstruct source code from Java bytecode. When I used it on my own class files it did a frighteningly good job! I’m sure there must be other utilities that do the same job.

    Of course the reconstructed variables will have funny names and there won’t be any comments (!), but byte code *can* be converted back into source code of a sort.

    Look up "java decompiler" on a search engine.

Leave a Reply