is the java source available??

T

TrevorBoydSmith

I was just curious if the java source is available??? I ask because
sometimes I want to look at the source instead of the java API
documentation.

So far I have tried going into the rt.jar which contains the java run
time *.class files for all its libraries but the source files are not
next to the *.class files. How would one look up the java source?
 
M

Michael Rauscher

I was just curious if the java source is available??? I ask because
sometimes I want to look at the source instead of the java API
documentation.

So far I have tried going into the rt.jar which contains the java run
time *.class files for all its libraries but the source files are not
next to the *.class files. How would one look up the java source?

Have a look at src.zip located in the root of the JDK installation
directory.

Bye
Michael
 
B

Babu Kalakrishnan

I was just curious if the java source is available??? I ask because
sometimes I want to look at the source instead of the java API
documentation.

So far I have tried going into the rt.jar which contains the java run
time *.class files for all its libraries but the source files are not
next to the *.class files. How would one look up the java source?

An archive file with source code of all public classes that you're
allowed to use is available along with the JDK in a file named src.zip -
You will not find in it the source code for a lot of Sun specific
implementatins (which you are't supposed to use in your program anyway)
- but even these can be downloaded from the Sun website separately.

BK
 
T

TrevorBoydSmith

Ya sorry about the wasted thread here. I did end up finding the java
source online with a simple google search.
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

FYI it is only available for java 1.5 or greater.

All my JDK's from 1.2.2 to 1.6 has it.

(in older versions it is src.jar not src.zip)

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top