LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-21-2003, 09:33 AM   #1
senthilasks
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Rep: Reputation: 0
installing sdk1.4 on RH linux 8


hello everybody,
could any one give me the what are all the steps and command to install the j2sdk1.4.2. i am a newbie so give
all necessary commands which i can easily understand.
 
Old 08-21-2003, 09:53 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,388

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
Could you give the complete name of the file that you want to install?
 
Old 08-23-2003, 06:17 AM   #3
senthilasks
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Original Poster
Rep: Reputation: 0
i am downloaded the rpm file of the sdk. could u plz tell me the necessary steps. i am already mentioned i am newbie so plz tell me the all operations for installing and running the sdk.
 
Old 08-23-2003, 12:13 PM   #4
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Firts double click the installer, thell it to install it under opt or where ever you may want, then you need to edit your /etc/profile file in order for the Java libraries to get detected by Java based apps. Here is an exerpt of MY /etc/profile (you may have chosen another install directory for Java)

Where is the part of X's pathmunge add:
Code:
pathmunge /usr/X11R6/bin after
pathmunge /usr/java/j2sdk_nb/j2sdk1.4.2/bin

unset pathmunge
Then set the path to the libraries to be exported to the LD_LIBRARY_PATH enviroment variable:
Code:
if [ $LD_LIBRARY_PATH ]
then
  if ! set | grep LD_LIBRARY_PATH | grep /usr/X11R6/lib:/usr/X11R6/lib/modules:/usr/java/j2sdk_nb/
j2sdk1.4.2/lib > /dev/null
  then
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/X11R6/lib:
/usr/X11R6/lib/modules:/usr/java/j2sdk_nb/j2sdk1.4.2/lib
    export LD_LIBRARY_PATH
  fi
else
  LD_LIBRARY_PATH=/usr/X11R6/lib:/usr/X11R6/lib/modules:
/usr/java/j2sdk_nb/j2sdk1.4.2/lib
  export LD_LIBRARY_PATH
fi
In the code above I had to split the lines where it reads the paths to /usr/java/... /usr/X11R6/... and the second instance of /usr/java/... Make sure these three lines are set as a one long line after the | grep statement of the first if and after the then and else bash's keywords. That should be all.
 
  


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
newbie in linux-mandrake; installing .rpm vmware for linux jet_espinal Mandriva 2 11-02-2006 06:06 AM
installing redhat linux 9.1 in dual boot mode(actually 98,xp,linux together) linuxchub Linux - Newbie 1 09-16-2004 10:21 AM
Installing programs in linux? which progs? can linux do the things windows can? James-jmpm Linux - Newbie 6 07-02-2004 07:01 PM
Installing windows over linux on a fully partitioned drive for linux reddon84 Linux - Software 2 01-26-2004 06:17 PM
install Java Sdk1.4.2 sutho1 Linux - Newbie 1 09-25-2003 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 PM.

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