LinuxQuestions.org
Help answer threads with 0 replies.
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 01-29-2009, 03:41 AM   #16
yuri16
Member
 
Registered: Jan 2009
Location: Philippines
Posts: 59

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by jay73 View Post
You just add your export JAVA_HOME to the bottom of /etc/profile. As for the first excerpt you posted, that is the message you would get if your vim session crashed. It tells you that a copy of the original file has been made and that you need to decide what to do with it. See the information under (2) in the message.
I already recovered the changes, but I can not delete the swap file.
I tried this ff. commands with no effect:

rm /etc/.profile.swp/

rm /etc/.profile.swp/swapfile

swap -d /etc/.profile.swp

Can you tell me how can I delete the swap files?
 
Old 01-29-2009, 04:09 AM   #17
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
You need to be root to edit anything outside your user's home directory so you'll need to su to root first. The rm command should do to remove the swap file.
 
Old 01-29-2009, 04:10 AM   #18
yuri16
Member
 
Registered: Jan 2009
Location: Philippines
Posts: 59

Original Poster
Rep: Reputation: 15
I already delete them. Thank God.
Anyway, what is the proper way to set JAVA_HOME to the location of jdk?

jdk was located here:

/usr/lib/jvm/java-1.5.0-sun
 
Old 01-29-2009, 04:16 AM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta3 on Lenovo Thinkpad W520
Posts: 6,793

Rep: Reputation: 2136Reputation: 2136Reputation: 2136Reputation: 2136Reputation: 2136Reputation: 2136Reputation: 2136Reputation: 2136Reputation: 2136Reputation: 2136Reputation: 2136
As jay73 said, just add this line:
Code:
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
at the end of /etc/profile
 
Old 01-29-2009, 05:34 AM   #20
yuri16
Member
 
Registered: Jan 2009
Location: Philippines
Posts: 59

Original Poster
Rep: Reputation: 15
Thank u so much for all the help.
God Bless you 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
JAVA_HOME seems to be getting set somewhere other than /etc/profile Neztec Linux - Newbie 8 10-22-2009 07:42 AM
unable to set JAVA_HOME mahi Linux - Newbie 2 11-17-2008 03:04 AM
Install jdk in different location noshankus Linux - Newbie 3 08-11-2008 02:47 PM
How to set JAVA_HOME for Tomcat Technomot1 Linux - Newbie 2 11-26-2007 04:50 AM
How to set JAVA_HOME in catalina.sh rajaniyer123 Linux - Software 1 10-06-2007 05:34 AM


All times are GMT -5. The time now is 10:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration