LinuxQuestions.org
Review your favorite Linux distribution.
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 09-04-2003, 09:51 PM   #1
insom
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Java 1.4.0 SDK install problem


Hey,

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 Simple.java 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

/usr/java/j2sdk1.4.X/bin/javac Simple.java

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

Error: failed /usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so, because libstdc++-libc6.1-1.so.2: 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!

Simon
 
Old 09-04-2003, 11:49 PM   #2
osprey0331
Member
 
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
CLASSPATH=$JAVA_HOME/class; export CLASSPATH
 
Old 09-05-2003, 01:04 AM   #3
muneebs123
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
shinu_scorpion
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Friend
Another way is
goto
1./etc/profile
2.Set
pathmunge (path of j2sdk*.*/bin)
3. Reboot the system
 
  


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
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

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

All times are GMT -5. The time now is 06:33 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