Where to find the Java source files?

S

Shawn

Hi,

I remember Java source files are installed somewhere and I can take a
look at them. For example, right now I hope to look at JFrame's file,
JFrame.java. I forgot where to it is installed. Could you give me a hint?

Thank you.
 
O

Oliver Wong

Shawn said:
Hi,

I remember Java source files are installed somewhere and I can take a look
at them. For example, right now I hope to look at JFrame's file,
JFrame.java. I forgot where to it is installed. Could you give me a hint?

Hint: C:\Program Files\Java\jdk1.6.0\src.zip

- Oliver
 
J

John Ersatznom

Oliver said:
Hint: C:\Program Files\Java\jdk1.6.0\src.zip

I love my IDE. Instead of my having to remember this kind of crap, the
IDE remembers it for me and all I have to do is type

JFrame foo;

somewhere random in an editor, double click "JFrame", and right click
and select "Open Declaration". Presto: Sun's source code for JFrame. It
can be configured not just for rt.jar but third-party libraries as well.
You can also configure the WWW location of their API docs and your own
generated documentation will link to the API docs, as well as
shift-F2(?) letting you send the Web browser of your choice to the
online docs for any given identifier, say ListIterator.

(You can also point the docs at locally-installed copies and browse them
likewise, but it won't generate links to them in generated
documentation. The documentation you generated would have File: URLs
that wouldn't work when you published the documentation. Point at the
online copy of library docs, though, and your generated documentation
links to the official library docs at the library's official website.)
 
T

Tris Orendorff

I love my IDE. Instead of my having to remember this kind of crap, the
IDE remembers it for me and all I have to do is type

God god man! Have you taken leave of your senses? Never, never admit to
using an IDE instead of the command line in this group. You are likely to
be tarred and feathered or worse: denounced to the authorities.
 
L

Luc The Perverse

Tris Orendorff said:
God god man! Have you taken leave of your senses? Never, never admit to
using an IDE instead of the command line in this group. You are likely to
be tarred and feathered or worse: denounced to the authorities.

LOL

I do not believe people here are opposed to an IDE in general - the problem
comes with people wanting to use an IDE as an excuse to not learn how to use
the command line.
 
J

John Ersatznom

Luc said:
LOL

I do not believe people here are opposed to an IDE in general - the problem
comes with people wanting to use an IDE as an excuse to not learn how to use
the command line.

Commandlines are overrated anywho. They're like fumbling around in the
dark with a flashlight, when you could just turn on a light. The only
area where they are better than other interfaces is when they're
scripted or used to dump a whole bunch of information as text or
something -- in other words, when it's a *computer* using them. That,
and as the last-resort user interface to an otherwise-failed system
(fancy graphics modes notworky, or headless system needs to be
remote-administered manually rather than through a nice client for some
reason). What do graphical interfaces do poorly at after all? Single
user actions? No. It's things like renaming a whole bunch of files in a
pattern and such. Even moving big piles of files is GUI-friendly.
Basically, if it isn't easily done in a modern GUI it needs to be
scripted or otherwise automated.
 
?

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

John said:
Commandlines are overrated anywho. They're like fumbling around in the
dark with a flashlight, when you could just turn on a light. The only
area where they are better than other interfaces is when they're
scripted or used to dump a whole bunch of information as text or
something -- in other words, when it's a *computer* using them. That,
and as the last-resort user interface to an otherwise-failed system
(fancy graphics modes notworky, or headless system needs to be
remote-administered manually rather than through a nice client for some
reason). What do graphical interfaces do poorly at after all? Single
user actions? No. It's things like renaming a whole bunch of files in a
pattern and such. Even moving big piles of files is GUI-friendly.
Basically, if it isn't easily done in a modern GUI it needs to be
scripted or otherwise automated.

You completely missed the point.

It was not a whether to use command line or GUI post.

The point was that people who could use the command line
would have an understanding of what the IDE does for them
that makes them capable of solving problems that arise when
they use the IDE.

Arne
 
J

John Ersatznom

Arne said:
You completely missed the point.

You completely missed your Friday 3:00 class, "Diplomacy 101". Please do
get your attendance up; midterms are in February you know, little more
than a month from now. :)
The point was that people who could use the command line
would have an understanding of what the IDE does for them
that makes them capable of solving problems that arise when
they use the IDE.

To wit, the IDE basically lets them turn on the room lights instead of
poking around in the dark with a flashlight. As for problems arising
with an IDE, this may need you need to: complain/submit a bug report;
work around the problem; get a different IDE; or figure out the workings
of the IDE and other tools (but not some archaic shell) and fix them.
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top