LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-17-2006, 04:06 PM   #1
pwnd
LQ Newbie
 
Registered: Jun 2006
Posts: 18

Rep: Reputation: 0
Can't install Java Runtime Environment


I'm 15 years old and I've used Windows for years so I'm the BIGGEST Linux newb you'll ever meet. Please don't ask "why don't you just use Windows?" because it's a long story.
Anyways I have Ubuntu and I'm trying to install Java 2 Runtime Environment from the Java website. I've followed the instructions, downloaded the right one, but when I try to open it in Gedit, i get the message "Could not open file....could not detect character coding, please check you are not trying to open a binary file..."
I've tried doing what it says but I have a gut feeling I'm doing something wrong. Can somebody possibly walk me through this? You can also add me at happy_dood@hotmail.com if it might take a while.
 
Old 06-17-2006, 04:17 PM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,430

Rep: Reputation: 83
#1, It is right to use Penguin. Nobody asks use evil bil's junk.
#2. Can you post a) what exact file you download b) what exact instruction you followed c) post entire error message and your command. d) detailed description of your penguin.
#3. So that other penguins can make better understanding on your situation
 
Old 06-17-2006, 04:32 PM   #3
pwnd
LQ Newbie
 
Registered: Jun 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Oh, sure. See, I'm a huge newb.

I'm trying to install Solaris (32-bit) from java.com
the actual file name is "jre-1_5_0_07-linux-amd64-rpm.bin

I saved it to my desktop and then when I open it (in Getit), It reads,
"Could not open the file /home/charley/Desktop/jr…_0_07-linux-amd64-rpm.bin.
gedit has not been able to detect the character coding.
Please check that you are not trying to open a binary file.
Select a character coding from the menu and try again."

Anymore information?
 
Old 06-17-2006, 04:41 PM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
gedit is a text editor, you wouldnt want to open an executable with that...

open a terminal (gnome-terminal or something in ubuntu?) then
Code:
cd ~/Desktop
then try
Code:
./<file>
i KNOW suns help doesnt say open it in gedit so i dont know where you got that idea
 
Old 06-17-2006, 04:45 PM   #5
pwnd
LQ Newbie
 
Registered: Jun 2006
Posts: 18

Original Poster
Rep: Reputation: 0
After I downloaded it and opened it, it just automaticaly opened it it Getit. Should I open it in something else?
Also, I tried what you said in the terminal and it said "bash: ./jre-1_5_0_07-linux-amd64-rpm.bin: Permission denied"
 
Old 06-17-2006, 04:51 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 59
Even newbies sometimes have a clue.

Quote:
I'm trying to install Solaris (32-bit) from java.com
the actual file name is "jre-1_5_0_07-linux-amd64-rpm.bin
Do you have a Solaris 32-bit installation? If you do, you're trying to install an AMD64 (64-bit) program on it. It'll never work.

Quote:
Anyways I have Ubuntu...
Do you have a 64-bit version of Ubuntu? Is there even a 64-bit Ubuntu? If not, it'll never work.

I think you should read some documentation before you do anything else. Read and understand. In the first place that file you downloaded is not meant to be 'opened.' It's meant to be executed, but I'm pretty sure it's the wrong file anyway. Here's a tip ... You can't execute it by double clicking on it.

I believe Ubuntu has a Sun Java installation package in their repositories. I'm sure there is also a line by line explanation of how to get it installed somewhere on their website.

Using Linux is a man's job. Not recommended for kiddies. At 15, I have every reason to believe you're capable of doing it right, but making wild stabs in the dark is not the right way to get started.
 
Old 06-17-2006, 05:38 PM   #7
odiseo77
Member
 
Registered: Dec 2004
Location: London, UK
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 952

Rep: Reputation: 276Reputation: 276Reputation: 276
Quote:
I believe Ubuntu has a Sun Java installation package in their repositories. I'm sure there is also a line by line explanation of how to get it installed somewhere on their website.
That's right. pwnd, take a look at http://easylinux.info/wiki/Ubuntu_dapper

and

https://wiki.ubuntu.com/UserDocumentation

You'll find information there on how to install JRE on Ubuntu (and how to manage Ubuntu).

Also, the package you downloaded is not meant for your system, as rickh says; first is for 64 bit systems and second is a rpm package (Ubuntu is based on Debian, so it uses .deb packages or just .bin packages)

Quote:
Using Linux is a man's job. Not recommended for kiddies
Come on, don't discourage him ; you'd be surprised to know how fast kids can learn stuff
 
Old 06-17-2006, 06:06 PM   #8
pwnd
LQ Newbie
 
Registered: Jun 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for all the help. I was just getting really impatient and trying to jump in there too fast.
 
Old 06-17-2006, 07:17 PM   #9
pwnd
LQ Newbie
 
Registered: Jun 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Oh one more thing, I have AMD, not Pentium. Would that have anything to do with my problems?
 
Old 06-17-2006, 10:29 PM   #10
pwnd
LQ Newbie
 
Registered: Jun 2006
Posts: 18

Original Poster
Rep: Reputation: 0
More trouble with J2RE

Thanks to everybody who helped me out earlier and had patience with me.
I took your advice and read all about installing files, the terminal, package manager...etc. I found out what I was doing wrong, but now when I try to install it, this comes up:

Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
replace jre-1_5_0_07-linux-amd64.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: jre-1_5_0_07-linux-amd64.rpm
error: Failed dependencies:
glibc >= 2.1.2-11 is needed by jre-1.5.0_07-fcs.x86_64
sh-utils >= 2.0-1 is needed by jre-1.5.0_07-fcs.x86_64
fileutils >= 4.0-8 is needed by jre-1.5.0_07-fcs.x86_64
gawk >= 3.0.4-1 is needed by jre-1.5.0_07-fcs.x86_64
textutils >= 2.0-2 is needed by jre-1.5.0_07-fcs.x86_64
/bin/sh is needed by jre-1.5.0_07-fcs.x86_64

Done.


I can't get certain things to run that requires J2RE so I know something went wrong.
 
Old 06-17-2006, 10:39 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
I've merged the two threads, there's no need to start a new one as you
were getting support in the original, and it was only started today.


Secondly, I see two inconsistencies:
1st you're talking about a solaris package
2nd you're using RPMs for Ubuntu?

Can you please clarify what distribution you're using, and what
the source of your JRE package is?


Cheers,
Tink
 
Old 06-17-2006, 10:44 PM   #12
pwnd
LQ Newbie
 
Registered: Jun 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Sorry for the confusion I'm not using Solaris at all...I don't know where I got that from, I didn't really have a clue what I was doing.:P
And I'm using a .bin file.
 
Old 06-17-2006, 10:49 PM   #13
pwnd
LQ Newbie
 
Registered: Jun 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Also, after I type apt-get install sun-java5.bin, it reads:

E: Couldn't find package sun-java5.bin

Why is it not able to read it? (btw it's on my desktop)

Last edited by pwnd; 06-17-2006 at 10:51 PM.
 
Old 06-17-2006, 11:13 PM   #14
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 59
You appear to be improving slowly, but you still haven't learned to read. In response #7 above, you got a couple links for Ubuntu documentation. The 1st one has a link a little ways down the page that says something like, "Install Sun Java." I glanced at it ... It appears to include two (2) very simple instructions. I think you can manage it.

In the meantime, delete that file on your desktop. It's probably the wrong one anyway.
 
Old 06-17-2006, 11:29 PM   #15
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by pwnd
Also, after I type apt-get install sun-java5.bin, it reads:

E: Couldn't find package sun-java5.bin
I'm not surprised it says "Couldn't find package sun-java5.bin" as the package is called "sun-java5-jre".
You dont need to download the package from sun, you download it from ubuntu and apt-get dose it all for you.
just type
Code:
sudo apt-get install sun-java5-jre sun-java5-plugin
then
Code:
echo 3 | sudo update-alternatives --config java
If apt still can't find the package then read this
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
Compile, Install Java Runtime Environment without X-Windows redthor Linux - Software 1 12-11-2005 05:50 PM
FC1 Java Runtime Environment Install XsuX Linux - Newbie 3 10-15-2004 12:50 PM
How to install Java Runtime Environment in Mozilla ? wlaw Linux - Software 2 09-23-2004 11:42 AM
Which Java Runtime Environment to use? r_jensen11 Linux - Software 4 09-13-2003 06:43 PM


All times are GMT -5. The time now is 10:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration