LinuxQuestions.org
Register a domain and help support LQ
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 04-13-2011, 01:47 AM   #1
coolprosu
LQ Newbie
 
Registered: Apr 2011
Posts: 7

Rep: Reputation: 0
Exclamation Problem installing jdk1.3 in RedHat Linux Version 8.0


Hi,

I'm facing some problems with my Java installation due to which I'm not able to install another software which requires the JDK.

Below is the steps that I'm following for the installation:
1. I have "j2sdk-1_3_1_01-linux-i386-rpm.bin" in /install directory
2.
Code:
#  cd install
3.
Code:
#  ./j2sdk-1_3_1_01-linux-i386-rpm.bin
4. License acceptance and extraction is fine
5.
Code:
# rpm –ivh jdk-1.3.1_01.i386.rpm
6. Java is installed under /usr/java/jdk1.3.1_01
7. Setting the path:
Code:
# PATH=/usr/java/jdk1.3.1_01:/usr/java/jdk1.3.1_01/bin:$PATH
# export PATH
Problem:
I'm not able to install another software which requires this JDK. On further investigation, I find the following:
1. Commands like
Code:
java -version
,
Code:
javac
, etc. are not working (unrecognized command)
2. I can see the directories
Code:
/usr/java/jdk1.3.1_01
and
Code:
/usr/java/jdk1.3.1_01/bin
, but the files under the bin directory appear as links. E.g.:
Code:
lrwxrwxrwx  .....  javac -> Java_Wrapper
3. Even when I navigate to the bin directory and try to execute the Java commands, they are not working.

I hope I have been able to explain my problem. Any help regarding this will be highly appreciated.

Thanks in Advance.
 
Old 04-13-2011, 02:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you do realise you are installing an ancient version of java on an ancient version of linux, right? You *REALLY* don't want to be doing this at all.

Navigating to the directories they are in will not help, the commands just need to be on your PATH variable and they will be found. as you current directory should NOT be on that list of locations to look it, it doesn't have any effect.
 
Old 04-13-2011, 03:16 AM   #3
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Hey there coolprosu!

WOW! Way back machine! Can you believe I started out on this very forum/site with ... RehHat 8! All those CD's...
Then I was given the same advice I'll give you now: switch to a newer distro. Reasons are simple: there are new challenges in the Internet an old(er) setup like ReHat8/Java1.3 cannot meet anymore, there are no updates for this software, up-to-date platforms to "play" with, ... the list goes on.

I see you just registered. New to Linux? If so, I'll slide some links your way:
Choose a distro you're comfortable with:
http://www.zegeniestudios.net/ldc/
Networking in Linux
http://www.comptechdoc.org/os/linux/...ide/index.html
Intro to Linux
http://tldp.org/LDP/intro-linux/intro-linux.pdf
I see the windows logo...crossing over? Comparative info:
http://linux.oneandoneis2.org/LNW.htm
One day you'll need Java...so:
http://www.wikihow.com/Install-Java-on-Linux
And, of course you'll need answers too...but, you're already here! Welcome to the forum!

Enjoy!

Thor

Last edited by ButterflyMelissa; 04-13-2011 at 03:24 AM.
 
Old 04-13-2011, 03:21 AM   #4
coolprosu
LQ Newbie
 
Registered: Apr 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
you do realise you are installing an ancient version of java on an ancient version of linux, right? You *REALLY* don't want to be doing this at all.
Yes I do realize things are pretty outdated in this topic. But we're installing an ancient application on our Linux machine to study it as we're going to re-write it on newer platforms. Didn't dare to try and install it on newer versions

Quote:
Originally Posted by acid_kewpie View Post
Navigating to the directories they are in will not help, the commands just need to be on your PATH variable and they will be found. as you current directory should NOT be on that list of locations to look it, it doesn't have any effect.
Ok, but I did set the path as following:

Code:
# PATH=/usr/java/jdk1.3.1_01:/usr/java/jdk1.3.1_01/bin:$PATH
# export PATH
Isn't it supposed to work after this or should I add anything else? Just to mention, there were no errors in the steps that I mentioned in my post. They went on fine.
 
Old 04-13-2011, 03:48 AM   #5
coolprosu
LQ Newbie
 
Registered: Apr 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Thor_2.0 View Post
Hey there coolprosu!

WOW! Way back machine! Can you believe I started out on this very forum/site with ... RehHat 8! All those CD's...
Then I was given the same advice I'll give you now: switch to a newer distro. Reasons are simple: there are new challenges in the Internet an old(er) setup like ReHat8/Java1.3 cannot meet anymore, there are no updates for this software, up-to-date platforms to "play" with, ... the list goes on.

I see you just registered. New to Linux? If so, I'll slide some links your way:
Choose a distro you're comfortable with:
http://www.zegeniestudios.net/ldc/
Networking in Linux
http://www.comptechdoc.org/os/linux/...ide/index.html
Intro to Linux
http://tldp.org/LDP/intro-linux/intro-linux.pdf
I see the windows logo...crossing over? Comparative info:
http://linux.oneandoneis2.org/LNW.htm
One day you'll need Java...so:
http://www.wikihow.com/Install-Java-on-Linux

Enjoy!

Thor
Hi Thor,

Yes I know it's old. I explained why

Thanks a lot for the links. I have been working with Java on Linux platforms for quite sometime, but never went too deep into Linux. Your links will help. I appreciate the welcome to this forum. Thanks again.
 
Old 04-13-2011, 07:46 AM   #6
coolprosu
LQ Newbie
 
Registered: Apr 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Just to avoid confusion, my problem still remains.

Do I need to add anything else in the path?
 
Old 04-13-2011, 08:07 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
where did you set the path? do an "echo $PATH" to show what it really thinks it is where you're trying to run it from. Note that setting it in one shell like that and running something from another won't work.
 
Old 04-13-2011, 09:54 AM   #8
coolprosu
LQ Newbie
 
Registered: Apr 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by acid_kewpie View Post
where did you set the path? do an "echo $PATH" to show what it really thinks it is where you're trying to run it from. Note that setting it in one shell like that and running something from another won't work.
I just did that, the path is showing fine. Still the command is resulting in an error:

Code:
[root@localhost root]# echo $PATH
/usr/java/jdk1.3.1_01/:/usr/java/jdk1.3.1_01/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
[root@localhost root]# java -version
/usr/java/jdk1.3.1_01/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: 
cannot open shared object file: No such file or directory
So the path is identified, the problem is something else. Does these errors look familiar?
 
Old 04-13-2011, 10:12 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
GIYF... http://www.google.co.uk/search?q=lib....so.2+redhat+8
 
Old 04-18-2011, 05:50 AM   #10
coolprosu
LQ Newbie
 
Registered: Apr 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs up Problem Resolved

Thanks everyone for guiding me towards the solution. Searching with the error message really helped.

All I needed to do was create a symbolic link:

Code:
ln -s /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.1-1.so.2

/usr/lib/libstdc++-3-libc6.2-2-2.10.0.so was existing in my system
 
Old 04-18-2011, 06:05 AM   #11
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
i'm glad you found your solution and if you're happy with it and have no further questions relating to this thread, please mark this thread as solved ;-)

Kind regards

Brownie
 
Old 04-19-2011, 04:57 AM   #12
coolprosu
LQ Newbie
 
Registered: Apr 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Brownie

Yes, did all three
 
  


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
problem in installing JDK1.5.0 mech123 Linux - Software 1 06-24-2009 09:19 AM
Problem setting JAVA_HOME when installing jdk1.5 RVDowning Mandriva 4 08-02-2006 08:38 AM
Having Problem Installing Redhat Linux Enterprises ws Version 4 game Linux - Newbie 0 04-18-2006 07:16 AM
Installing RedHat (or any linux version) fails Faegan Linux - Hardware 1 07-13-2003 11:25 AM
Ask help on installing jdk1.3 on Redhat linux7.1! jane207 Linux - Software 8 11-05-2001 05:16 PM


All times are GMT -5. The time now is 06:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration