Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > Technical Support > General Linux Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Linux Support For questions regarding use of LimeWire or WireShare or related questions on the Linux operating system. This includes installation questions and answers. (Check the Stickies marked in Red at top of this section.)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old September 8th, 2003
Novicius
 
Join Date: September 8th, 2003
Posts: 1
mijl2222 is flying high
Wink Installing Java for a Newbie

As a newbie to linux I was haveing a hard time figureing out how to set the java home. non oth the other directions I tried seem to work for me.
I found these instruction when I was trying to install java for another app. it's fail proof.
First install java from rpm or bin dist.

To set up the global variable JAVA_HOME and add the binary directory to the path can be done by adding scripts to the /etc/profiles.d directory.

Using your favourite editor, create /etc/profiles.d/java.sh and /etc/profiles.d/java.csh. These are respectively:

#!/bin/sh
# JAVA additions
JAVA_HOME=/usr/java/j2sdk1.4.2
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME PATH
# End of .sh version

#!/bin/csh
# JAVA additions
if ( ! $?JAVA_HOME ) then
setenv JAVA_HOME /usr/java/j2sdk1.4.2
endif
if ( $?PATH ) then
setenv PATH $JAVA_HOME/bin:$PATH
else
setenv PATH $JAVA_HOME/bin
endif
# End of .csh version

Give the files the same ownership and permissions as other files in the directory.

Execute the .sh file just created to set up the correct environment for JAVA.

# source /etc/profile.d/java.sh

That's it for installing Java
Reply With Quote
Reply


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
i need help; LW says please install the new version of java after installing Java Logan_2468 Windows 7 October 5th, 2009 11:07 PM
Installing Java b4k4^ni General Linux Support 34 July 16th, 2007 09:14 PM
NEWBIE installing LW and cant get information to load in main page bluehawk4355 Getting Started Using LimeWire + WireShare 12 March 12th, 2007 04:07 PM
Installing Java humbertoarte Windows 5 October 11th, 2006 09:25 AM
newbie here--upgraded java but am having problems joyrider General Windows Support 4 December 15th, 2004 12:59 PM


All times are GMT -7. The time now is 12:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.