Linux - NewbieThis 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
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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).
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?
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.