LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem installing jdk1.3 in RedHat Linux Version 8.0 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-installing-jdk1-3-in-redhat-linux-version-8-0-a-874696/)

coolprosu 04-13-2011 12:47 AM

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.

acid_kewpie 04-13-2011 01:19 AM

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.

ButterflyMelissa 04-13-2011 02:16 AM

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... :D
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

coolprosu 04-13-2011 02:21 AM

Quote:

Originally Posted by acid_kewpie (Post 4322955)
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 (Post 4322955)
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.

coolprosu 04-13-2011 02:48 AM

Quote:

Originally Posted by Thor_2.0 (Post 4322990)
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... :D
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.

coolprosu 04-13-2011 06:46 AM

Just to avoid confusion, my problem still remains.

Do I need to add anything else in the path?

acid_kewpie 04-13-2011 07:07 AM

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.

coolprosu 04-13-2011 08:54 AM

Quote:

Originally Posted by acid_kewpie (Post 4323225)
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?

acid_kewpie 04-13-2011 09:12 AM

GIYF... http://www.google.co.uk/search?q=lib....so.2+redhat+8

coolprosu 04-18-2011 04:50 AM

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

brownie_cookie 04-18-2011 05:05 AM

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

coolprosu 04-19-2011 03:57 AM

Hi Brownie

Yes, did all three :)


All times are GMT -5. The time now is 01:55 AM.