Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638
Rep:
Opening the binary file
Hello
I downloaded the following file. It is supposed to open by double clicking. It didn't work in
that way.
Could you please tell me the command to open the file to install it?
Try opening up a terminal, navigating to the folder, then issuing "sh jre-1_5_0_0_01-Linux-amd-64.bin" or "./jre-1_5_0_0_01-Linux-amd-64.bin" without the quotes. I don't remember when I installed java if I was root or not, but if that doesn't work try "sudo sh jre-1_5_0_0_01-Linux-amd-64.bin" or "sudo ./jre-1_5_0_0_01-Linux-amd-64.bin".
If nothing else perhaps it will tell you why it's not working rather then simply dying.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638
Original Poster
Rep:
Thank suicidebiker, it worked fine.
The following command worked.
sh "jre-1_5_0_01-linux-amd64.bin"
It created a lot of folders. The following are some of them.
-----------------------------------------------------------------------------------------
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
creating: jre1.5.0_01/
creating: jre1.5.0_01/bin/
inflating: jre1.5.0_01/bin/java
inflating: jre1.5.0_01/bin/ktab
inflating: jre1.5.0_01/bin/orbd
inflating: jre1.5.0_01/bin/rmid
inflating: jre1.5.0_01/bin/keytool
inflating: jre1.5.0_01/bin/kinit
inflating: jre1.5.0_01/bin/klist
inflating: jre1.5.0_01/bin/unpack200
inflating: jre1.5.0_01/bin/tnameserv
inflating: jre1.5.0_01/bin/servertool
inflating: jre1.5.0_01/bin/pack200
inflating: jre1.5.0_01/bin/rmiregistry
inflating: jre1.5.0_01/bin/policytool
ah, ok. I looked at the instructions here: http://java.com/en/download/help/500...selfextracting and it appears that if you just move all that stuff into /usr/java or something similar. In all honesty I would just download the rpm from http://jdl.sun.com/webapps/download/...BundleId=10271 and install that (rpm -ivh packagename ). Last time I ran Mandrake it had rpm support. You can do it manually (instructions are at the java.com link above) but it looks like more trouble than it's worth.
[root@c83-250-89-216 java]# chmod a+x jre-1_5_0_05-linux-amd64-rpm.bin
[root@c83-250-89-216 java]# ls -l
total 15400
-rwxr-xr-x 1 root root 15746429 Nov 30 10:32 jre-1_5_0_05-linux-amd64-rpm.bin*
[root@c83-250-89-216 java]# ./jre-1_5_0_05-linux-amd64-rpm.bin
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA 2 PLATFORM STANDARD EDITION RUNTIME ENVIRONMENT 5.0
SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE SOFTWARE
IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT
ALL OF THE TERMS CONTAINED IN THIS BINARY CODE LICENSE AGREEMENT AND
SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT"). PLEASE READ THE
AGREEMENT CAREFULLY. BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT. INDICATE ACCEPTANCE BY SELECTING THE
"ACCEPT" BUTTON AT THE BOTTOM OF THE AGREEMENT. IF YOU ARE NOT WILLING
TO BE BOUND BY ALL THE TERMS, SELECT THE "DECLINE" BUTTON AT THE BOTTOM
OF THE AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT CONTINUE.
For inquiries please contact: Sun Microsystems, Inc., 4150 Network
Circle, Santa Clara, California 95054, U.S.A. (LFI#141623/Form
ID#011801)
Do you agree to the above license terms? [yes or no]
y
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-1_5_0_05-linux-amd64.rpm
Preparing... ########################################### [100%]
1:jre ########################################### [100%]
Done.
[root@c83-250-89-216 java]# ls
jre1.5.0_05/ jre-1_5_0_05-linux-am
d64.rpm jre-1_5_0_05-linux-amd64-rpm.bin*
[root@c83-250-89-216 java]# ls
I hope everything went smoothly. Please tell me if something is wrong.
Keep reading the instructions on configuring, that installs java, in order to use it in your browser for example you must symlink it to your plugins in your browser directory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.