LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-30-2007, 11:37 PM   #1
rjvcrisen0
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Rep: Reputation: 0
Java installation problem


Okay, its safe to say that i'm gonna hate computers all together. Okay, I'm trying to download Java Runtime Environment( * Platform(s):
Red Hat Linux, SUSE Linux, JDS
* Browser(s):
Netscape 6.2x, Netscape 7, Mozilla 1.4+
* JRE version(s):
1.5.0

And every time I try to open it it always says this= Could not open the file /home/gateway/Desktop/jre-6u2-linux-i586.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.

And I try to all of the codings i havebut none of them work. Please Help me. I don't know anything about Computers or linux. Please.
 
Old 07-30-2007, 11:48 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
This file is a binary program, not something you open with a text editor.

Open a terminal window and run these commands:
Code:
cd /home/gateway/Desktop
chmod +x jre-6u2-linux-i586.bin
./jre-6u2-linux-i586.bin
 
Old 08-01-2007, 09:11 AM   #3
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Before you do that either check the md5sum or at least the file size to make sure you actually downloaded the correct file. I've seen problems with downloads from Sun's website before where the full file was not downloaded for some reason.

When you run that file (after giving it run permissions as shown in the previous post) it should ask you to agree to their licensing blah blah and then it unzips itself. From there you can run Java by simply running the java binary under the bin directory in the unzipped java folder.

If you want to install it globally have root move that folder to somewhere such as usr/lib. You will probably want to create a symlink at /usr/lib/java that points to that folder. In addition, you set set the env var JAVA_HOME=/usr/lib/java and add /usr/lib/java/man to your MANPATH if desired. The java bin directory should also be added to your PATH or a java symlink pointed to the java bin directory can be put somewhere that falls under your PATH (such as /usr/local/bin).

Plugins:
all you need to do is make a symlink in your browser plugins directory that points to the appropriate java plugin (/usr/lib/jre1.5.0_12/plugin/i386/ns7/libjavaplugin_oji.so for instance). If you don't want to install the plugins globally then use the browser plugins directory in your browser folder under your home directory (it will be something like .mozilla/firefox/plugins).

If you don't know how to make symbolic links run
Code:
man ln
and read what it says. Try man command_name for any command you don't understand (command_name --help also can be helpful).

You can google for a good primer on Linux to help get you up to speed. One I like, though it has some distro-specific stuff in it, is the Slack book found at http://www.slackbook.org/. If you read that you will feel much more confident in managing your system.
 
Old 08-01-2007, 09:22 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Suse should be a lot easier than the other two because the jre can be installed from its repositories. Just go into Software Management under YAst, click and apply.
 
Old 08-01-2007, 09:31 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by shadowsnipes
Before you do that either check the md5sum or at least the file size to make sure you actually downloaded the correct file. I've seen problems with downloads from Sun's website before where the full file was not downloaded for some reason.
Not strictly necessary in that case.
The java installer first check the file integrity before going on.
 
Old 08-01-2007, 09:49 AM   #6
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by jlliagre
Not strictly necessary in that case.
The java installer first check the file integrity before going on.
True, the only reasoned I mentioned it is because I've seen people try to execute a java install bin file that is no more than a placeholder for the real download (which failed) and they sit there and wonder why nothing useful happens. Checking the file size is just a quick and simple test.

Quote:
Originally Posted by jay73
Suse should be a lot easier than the other two because the jre can be installed from its repositories. Just go into Software Management under YAst, click and apply.
It is true that installing a package would be the easiest route as a good package should do all the linking and such that I mentioned in my previous post. You should become very familiar with your distro's package manager. Most linux distros have them.

What distro are you using?
 
  


Reply



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
Problem with JAVA installation Panagiotis_IOA Linux - Software 7 02-09-2006 07:19 AM
Java installation problem MathewScott Linux - Software 1 03-18-2005 11:34 AM
Java installation problem fhleung Linux - General 3 10-03-2004 12:30 PM
Java VM installation problem reefadt Linux - Newbie 7 08-16-2003 08:24 PM
java installation problem... Zerodark Linux - Software 7 03-12-2003 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration