Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-04-2003, 09:51 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Java 1.4.0 SDK install problem


I am running Mandrake 9 and i am an extreme newbie to linux. I extracted an rpm for linux 1.4.0., now I am trying to compile a file in /home/simon/Documents. typing javac does not work (I will sort that out later, i heard it has something to do with .bash_profile, or classpath or something...) so i was looking at another thread here and a guy said he used


but for me, when I try that I get this message...

Error: failed /usr/java/j2sdk1.4.0/jre/lib/i386/client/, because cannot open shared object file: No such file or directory

So, this is probably a really simple problem (caused as a result of me not having a clue as to what I am doing), but i would really appreciate if I could get some help with this. Thanks!

Old 09-04-2003, 11:49 PM   #2
Registered: Jul 2003
Location: California
Distribution: RH 7 and 8
Posts: 45

Rep: Reputation: 15
you will need to set a parameter in the .bash_profile or in the .profile used to source to define the java classpath so that when you run the javac is knows where to find the classes and libraries...try inserting the lines to either your .bash_profile, .bashrc or .profile

JAVA_HOME=[location of jdk]; export JAVA_HOME
Old 09-05-2003, 01:04 AM   #3
LQ Newbie
Registered: Sep 2003
Posts: 23

Rep: Reputation: 15
i aslo had been facing this problem. The only way to solve it for all the user is to goto /etc and then edit bashrc
In the bottom of the file write
export PATH="/usr/java/jdk1.4/bin/":$PATH
export JAVAHOME="/usr/java/jdk1.4//"
export CLASSPATH=".:/usr/java/jdk1.4/"
Old 09-05-2003, 04:01 AM   #4
LQ Newbie
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Another way is
pathmunge (path of j2sdk*.*/bin)
3. Reboot the system


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
Java SDK & JRE Install Avi Linux - Software 1 10-02-2005 08:32 PM
java SDK install jet_zeng Linux - Software 5 05-10-2005 11:57 AM
how to install java 2 sdk? pdmackenzie Linux - Software 9 04-07-2004 08:39 AM
Java SDK 1.4.2 install. lifted_one Programming 4 11-06-2003 12:55 AM
Java SDK 1.4 Install KptnKrill Linux - Newbie 6 08-14-2003 08:47 PM

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration