|
In today's growing Internet, Java language grows. Anyone who is interested in a bit of the Internet to see what applets. Those more advanced try to learn some "tricks". If you already have some provision would need to achieve them. We need to first download the entire JavaDevelopmentKit which we find, at http://java.sun.com. After successfully downloading the package *. *. rpm.bin tar.gz.bin or accede to install the entire package. (Since I use the same so I will install Red Hat RPM).
Ripping it for example to / root (the root must have the right to perform the operation) and write the bin J2RE-1_ *_*_**- linux-i586-rpm.bin, (in the stars need to put the version number) before it javasdk the *. rpm file, you now simply click (or enter into a rpm-Midnight Commander): rpm-i J2RE-1_ *_*_**- linux-i586-rpm, which should install all the library needs.
Sometimes we do not have contact with redhat, then you should download the source of the general, which we install on any Linux / Unix.
Download the source: J2RE-1_ *_*_**- linux.tar.gz (or the other depending on the version, in any case end in *. tar.gz)
it unpacks the command: tar-xzvf J2RE-1_ *_*_**- linux.tar.gz
After unpacking, we enter into a directory that we created, we rozpakowały source files,
We assume that rozpakowałeś them in the directory / home / rumek (this is your home directory, as well it may be / root or whatever iinego eg / usr / local)
In theory, we have already installed Java, but, we need to compile anything given the full path to the program that is
/ home/rumek/jdk1.2.2/bin/javac Klasa.java
This is a little inconvenient because you can set the path PATH and then we will be able to do it in this way from any directory
javac Klasa.java, it simply so that the shell gives a
PATH = / usr/local/jdk1.2.2/bin: $ PATH (with ksh, sh, or bash)
and in csh
set path = (/ usr/local/jdk1.2.2/bin $ path)
Now check whether you already are ok:
. $ HOME / .profile which java (in ksh, bash, sh)
source ~ /. cshrc which java (in csh)
To update this entry as we add each log line above (those with path) to a file. Bash_profile in the user directory |