LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-08-2002, 01:33 PM   #1
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Rep: Reputation: 30
Problem installing java


I'm running Suse 7.3 and want to install java 1.4.0. Duly d/l'ed j2sdk-...-rpm.bin and j2re-...-rpm.bin from the java site. Now, according to the instrallation instructions, I have to:

chmod a+x j2re-1_4_0-linux-i386-rpm.bin
./j2re-1_4_0-linux-i386-rpm.bin

When I'm logged in as root, the chmod works fine. When I'm logged in as a user, it gives an error.

The ./j2re... gives the following error message in both cases:

bash: ./j2re-1_4_0-linux-i386-rpm.bin: bad interpreter: Permission denied

Just for clarity: I d/l'ed the *.bin packages into a Windows directory and tried to execute the commands shown above from there (y'know, cd /win/... to the relevant directory and then execute the cmd).

Can anybody please suggest a solution?

Thanks
Joe
 
Old 05-08-2002, 02:34 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Re: Problem installing java

Quote:
Originally posted by Joe Soap
When I'm logged in as root, the chmod works fine. When I'm logged in as a user, it gives an error.
This is one of those situations where you really should be root.
Quote:
Originally posted by Joe Soap
Just for clarity: I d/l'ed the *.bin packages into a Windows directory
Do you mean, like a FAT32 directory?

Last edited by zmedico; 05-08-2002 at 02:36 PM.
 
Old 05-09-2002, 12:00 PM   #3
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
I mean exactly like a FAT32 directory. I've got a dual boot system with most of the disk space allocated as FAT32 because, as we all know, Linux reads Windows but Windows doesn't read Linux... Surprise, surprise, eh?
 
Old 05-10-2002, 11:49 PM   #4
anil
LQ Newbie
 
Registered: Feb 2002
Posts: 27

Rep: Reputation: 15
try changing the permissions. for jre... .rpm.bin file by typing

chmod 777 jre....rpm.bin.

but anyway you dont have to install it again as user, if you install it as root that should be fine. users should be able to use the jre environment. all you need to do is add the path to "java/bin" directory to the environment path or in .bash_profile in the home directory of the user.

the following line is from .bash_profile directory in my computer.

PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.0/bin:

Anil
 
Old 05-11-2002, 12:17 PM   #5
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Thanks for the reply Anil. My problem isn't so much the permissions but rather the error I get when executing the second command:

./j2re-1_4_0-linux-i386-rpm.bin

bash: ./j2re-1_4_0-linux-i386-rpm.bin: bad interpreter: Permission denied

Any idea why I get this reply? And how can I fix it

Cheers
Joe
 
Old 05-11-2002, 03:31 PM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Try sh filename.rpm.bin
 
Old 05-13-2002, 05:54 AM   #7
Doalwa
LQ Newbie
 
Registered: Apr 2002
Location: Germany
Distribution: Mandrake Linux 8.2
Posts: 22

Rep: Reputation: 15
Create a folder in /usr/local called java so that it looks like this
/usr/local/java
Now copy or move the downloaded binary package to this directory and execute it as root.

This will create some directories in /usr/local/java which contain the java files.

Now you just have to set a symbolic link top that directory so that Linux knows that you installed java on your system.

Do it like this:

ln -s /usr/local/java/j2re1.4.0/bin/java /sbin/java

This should solve your problem.
 
Old 05-13-2002, 01:40 PM   #8
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Thanks neo77777, I tried the sh.... and it worked a treat. Unfortunately, as it tries to unpack the .rpm (I think), it tries to execute a script (I think, again) which contains the ./ command and not the sh. Is there any way that I can redirect or map ./ to point to sh?

Cheers
Joe
 
Old 05-17-2002, 01:08 PM   #9
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Apparently the alias command will take care of that...

Thanks to all who replied.
 
  


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 installing java on debian nédée Linux - Software 7 12-16-2005 11:18 PM
problem installing Java from ports zibo *BSD 1 06-15-2005 02:59 PM
Problem with Installing Java mikemillion Linux - Software 2 05-14-2005 07:19 PM
Installing java runtime env problem ur-unholyness Linux - Software 2 04-10-2005 01:32 AM
problem installing java plugin BobNz Linux - Software 7 04-16-2004 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 AM.

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