Open the command prompt or a terminal
window, and enter the command:
javac -version
Your computer may report something like this:
javac 1.6.0
This means that everything is fine. However, if it responds by saying that there is
no such command, or if you see that the version is older than 1.5, then, for a Linux
or Windows computer, go to http://java.sun.com/javase/downloads/index.
jsp, download the latest version of the JDK (not JRE! JRE is a runtime environment,
it doesn't contain the tools required for development) and install it following the
instructions available on that website.
For Mac, you can get Java 5 update from the Mac OS X Updates page
(http://www.apple.com/downloads/macosx/apple/macosx_updates). At the time
of this writing, the available package for Mac is J2SE 5.0 Release 4, you
need to pick the one for your platform, Intel or PPC.
Next, you need to make sure that the required environment variables are set
correctly. This will enable other elements of our working configuration to find
the JDK successfully. This step is platform-specific. I will give instructions for
Windows and Mac OS X. Linux instructions would be very similar to those for Mac,
and besides, if you are running Linux, you are probably familiar with the basic
technicalities of your distribution.
Pages:
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45