LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02: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, 03:09 AM   #17
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
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, 03: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, 03:16 AM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
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, 04: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



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 06:42 AM
unable to set JAVA_HOME mahi Linux - Newbie 2 11-17-2008 02:04 AM
Install jdk in different location noshankus Linux - Newbie 3 08-11-2008 01:47 PM
How to set JAVA_HOME for Tomcat Technomot1 Linux - Newbie 2 11-26-2007 03:50 AM
How to set JAVA_HOME in catalina.sh rajaniyer123 Linux - Software 1 10-06-2007 04:34 AM

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

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