943,964 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1803
  • Java RSS
Apr 2nd, 2005
0

Viewing java classes

Expand Post »
Is it possible to view the java classes source code or to get it somehow?
I'd really like to see how some of the classes work if its possible
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Gink is offline Offline
46 posts
since Feb 2005
Apr 2nd, 2005
0

Re: Viewing java classes

Decompile it. I believe you can download some decompilers but I can't recommend any, because I've never done this..
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Apr 3rd, 2005
0

Re: Viewing java classes

Hi everyone,

Be very careful about what you do with the decompiled source code as some of them may be copywrited and trying to use these source codes entirely on its own or pass them as your own can really be HUGE trouble for you.

Richard West
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
freesoft_2000 is offline Offline
623 posts
since Jun 2004
Apr 3rd, 2005
0

Re: Viewing java classes

That and some classes are protected by some device that won't let you decompile...Althought I think there is a way around them.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Apr 4th, 2005
0

Re: Viewing java classes

Nothing will stop decompilation but the usefulness to human readers of the generated code can be made pretty poor

And indeed NEVER pass off decompiled code as your own, and NEVER decompile code you didn't get explicit permission for to decompile it.
Such code is copyrighted to someone else and may contain patented information you have no right to.
And if you do get permission to decompile something often you'll get the source as well
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Apr 8th, 2005
0

Re: Viewing java classes

there are also a lot of obuscators which will obuscate your code, aka rename all your variables/methods/classes into completly meaningless terms. for instance

So some variable like studentName might be renamed to a variable called a
and methods will be likewise renamed, so you might see a lot of:

a.fek23();

while this isn't fool proof it will still take a lot of time (and patience) to understand the code

Here are two links to some decompilers, I have never used a decompiler and therefore have no idea if these are any good or not, but please do let me know if they work
http://jode.sourceforge.net/
http://www.devdaily.com/java/edu/pj/pj010021/
Reputation Points: 13
Solved Threads: 4
Posting Whiz
paradox814 is offline Offline
351 posts
since Oct 2004
Apr 13th, 2005
0

Re: Viewing java classes

if you want the source code for Sun's java classes click the link here and just keep going until you find the class you need

http://java.brangle.com/source/
Reputation Points: 13
Solved Threads: 4
Posting Whiz
paradox814 is offline Offline
351 posts
since Oct 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Not Displaying all my entries!!
Next Thread in Java Forum Timeline: Playing with RMI in Tiger





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC