Viewing java classes

Reply

Join Date: Feb 2005
Posts: 46
Reputation: Gink is an unknown quantity at this point 
Solved Threads: 0
Gink Gink is offline Offline
Light Poster

Viewing java classes

 
0
  #1
Apr 2nd, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Viewing java classes

 
0
  #2
Apr 2nd, 2005
Decompile it. I believe you can download some decompilers but I can't recommend any, because I've never done this..
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 609
Reputation: freesoft_2000 is an unknown quantity at this point 
Solved Threads: 8
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Re: Viewing java classes

 
0
  #3
Apr 3rd, 2005
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
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond

Tell me what type of software do you like and what would you pay for it

http://www.daniweb.com/techtalkforums/thread19660.html
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Viewing java classes

 
0
  #4
Apr 3rd, 2005
That and some classes are protected by some device that won't let you decompile...Althought I think there is a way around them.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Viewing java classes

 
0
  #5
Apr 4th, 2005
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
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 348
Reputation: paradox814 is an unknown quantity at this point 
Solved Threads: 4
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: Viewing java classes

 
0
  #6
Apr 8th, 2005
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/
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 348
Reputation: paradox814 is an unknown quantity at this point 
Solved Threads: 4
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: Viewing java classes

 
0
  #7
Apr 13th, 2005
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/
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC