View Full Version : installing java
kormath
22 Apr 2004, 12:14am
trying to install java j2re in fedora core 1. I keep getting this error:
[root@24-117-149-79 tracy]# ./j2re-1_4_2_04-linux-i586-rpm.bin
-bash: ./j2re-1_4_2_04-linux-i586-rpm.bin: Permission denied
I have yet to find anything online for help on this so i'm asking here while i continue to surf for info. Thanks in advance.
Straight_Man
22 Apr 2004, 12:59am
Kormath, the rpm.bin package is "safetied" when it is downloaded. You have to make it executable first. It is also archived. Run these things as ROOT, or do an su - root first if you have it in a path area your current userr can read and write to. I just install it as root.
Follow this process set to install, note the first chmod step without which the rest will die and burn:
Installation of RPM File
Use these instructions if you want to install Java 2 Runtime Environement in the form of RPM packages. If you want to use the self-extracting binary file instead, see Self-Extracting Binary above.
1. Check the download file size.
Before you download a file, notice that its byte size is provided on the download page. Once the download has completed, check that you have downloaded the full, uncorrupted software file.
2. Run the installation script and agree to the license it displays.
Launch the installation script by using the following commands from the directory in which it is located:
chmod a+x j2re-1_4_0_<version number>-linux-i586-rpm.bin
./j2re-1_4_0_<version number>-linux-i586-rpm.bin
The script displays a binary license agreement which you are asked to agree to before installation can proceed. Once you have agreed to the license, the install script creates the file j2re-1_4_0_<version number>-linux-i586.rpm in the current directory.
3. Become root by running the su command and entering the super-user password.
4. Run the rpm command to install the packages:
rpm -iv j2re-1_4_0_<version number>-linux-i586.rpm
This installs the packages comprising the Java 2 Runtime Environment.
5. Exit the root shell.
The source for this is at link below, direct from Sun. Process also works on SuSE.
http://java.sun.com/j2se/1.4/jre/install-linux.html
The search I used was j2re +install +Linux on Google. First hit. If you do not narrow down O\S with the +Linux part, you will get tons of links.
Other way to get Google to focus on Linux stuff is to start with its Linux searcher, by going here:
http://www.google.com/linux (no trailing slash needed nor wanted after x in linux)
HTH.
John D.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.