i cannot install JAVA Runtime Environment

Asked by t-kasiws

I downloaded JRE from JAVA free download page (/home/t-kasiws/jre-6u7-linux-i586.bin), but I cannot install it
onto Ubuntu. Or, I should lsay I don't know how to install.

When I open "/home/t-kasiws/jre-6u7-linux-i586.bin",
screen of Totem movie player appears, but there is an error mark and words "Could not determine type of stream"

Please tell me how and what to do to make the installation.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sun-java6 Edit question
Assignee:
No assignee Edit question
Solved by:
Chunhao Wang
Solved:
Last query:
Last reply:
Revision history for this message
Pramod Dematagoda (pmdematagoda) said :
#1

You don't have to install Sun Java that way, just execute:-
sudo apt-get install sun-java6-jre
in a terminal, that should install Sun Java JRE.

Revision history for this message
Bhavani Shankar (bhavi) said :
#2

Hello

Refer this link for java installation

https://help.ubuntu.com/community/JavaInstallation

Regards

Revision history for this message
t-kasiws (t-kasiws) said :
#3

Mr. Pramod Dematagoda

Thank you very much for your advice. I tried it, however, I had the following
result which is not clear to me (E: パッケージ sun-java6-jre-6u7-linux-i586.bin が見つかりません - In English, package sun-java6-jre-6u7-linux-i586.bin not found ).

If you have further help or advice, please send it to me.
I appreciate your kind cooperation.

t-kasiws@t-kasiws-ubuntu:~$ sudo apt-get install sun-java6-jre-6u7-linux-i586.bin
[sudo] password for t-kasiws:
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
E: パッケージ sun-java6-jre-6u7-linux-i586.bin が見つかりません
t-kasiws@t-kasiws-ubuntu:~$ sudo apt-get install openjdk-6-jre-6u7-linux-i586.bin
[sudo] password for t-kasiws:
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
E: パッケージ openjdk-6-jre-6u7-linux-i586.bin が見つかりません

Revision history for this message
Best Chunhao Wang (chwang) said :
#4

Maybe you have misunderstood Mr. Pramod Dematagoda.
He said that you just need type "sudo apt-get install sun-java6-jre" in your terminal, not "sudo apt-get install sun-java6-jre-6u7-linux-i586.bin".
Well, "sun-java6-jre" is the name of the package, while "sun-java6-jre-6u7-linux-i586.bin" is the name of the installer.
If you want to install jre with your ".bin" file, you may need to type "./sun-java6-jre-6u7-linux-i586.bin" in your terminal, but which is not recommended.
The best way to install jre is type EXACTLY the following line in your terminal, as Mr. Pramod Dematagoda said:
sudo apt-get install sun-java6-jre

Revision history for this message
t-kasiws (t-kasiws) said :
#5

Thanks Chunhao Wang, that solved my question.