<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: How to Set JAVA_HOME / PATH variables Under Linux Bash Profile</title> <atom:link href="http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Pablo</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-67710</link> <dc:creator>Pablo</dc:creator> <pubDate>Thu, 02 Feb 2012 13:22:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-67710</guid> <description>Você sauvou minha vida! Obrigado!
You sauve my life! Thank you!</description> <content:encoded><![CDATA[<p>Você sauvou minha vida! Obrigado!</p><p>You sauve my life! Thank you!</p> ]]></content:encoded> </item> <item><title>By: Sam</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-64183</link> <dc:creator>Sam</dc:creator> <pubDate>Mon, 07 Nov 2011 03:37:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-64183</guid> <description>Linux Mint 10.10 (should work the same in Ubuntu 10.10)
By default you should be able to type:
$ which java
and get:
/usr/bin/java
/usr/bin/java is actually a symbolic link to /usr/lib/jvm/default-java
If you try to set /usr/bin/java as JAVA_HOME, you will have problems.
As a workaround, you should be able to set JAVA_HOME successfully using:
export JAVA_HOME=/usr/lib/jvm/default-java
export PATH=$PATH:$JAVA_HOME/bin</description> <content:encoded><![CDATA[<p>Linux Mint 10.10 (should work the same in Ubuntu 10.10)<br
/> By default you should be able to type:<br
/> $ which java<br
/> and get:<br
/> /usr/bin/java</p><p>/usr/bin/java is actually a symbolic link to /usr/lib/jvm/default-java<br
/> If you try to set /usr/bin/java as JAVA_HOME, you will have problems.<br
/> As a workaround, you should be able to set JAVA_HOME successfully using:<br
/> export JAVA_HOME=/usr/lib/jvm/default-java<br
/> export PATH=$PATH:$JAVA_HOME/bin</p> ]]></content:encoded> </item> <item><title>By: kieron</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-61798</link> <dc:creator>kieron</dc:creator> <pubDate>Tue, 23 Aug 2011 04:41:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-61798</guid> <description>Thanks, this helped me.
Fedora 14</description> <content:encoded><![CDATA[<p>Thanks, this helped me.</p><p>Fedora 14</p> ]]></content:encoded> </item> <item><title>By: notgzus</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-61102</link> <dc:creator>notgzus</dc:creator> <pubDate>Thu, 28 Jul 2011 18:07:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-61102</guid> <description>i think he ment:
export JAVA_HOME=$JAVA_HOME:/usr/java/jdk1.6.0_26/bin/java
export PATH=$PATH:/usr/java/jdk1.6.0_26/bin</description> <content:encoded><![CDATA[<p>i think he ment:</p><p>export JAVA_HOME=$JAVA_HOME:/usr/java/jdk1.6.0_26/bin/java<br
/> export PATH=$PATH:/usr/java/jdk1.6.0_26/bin</p> ]]></content:encoded> </item> <item><title>By: RT</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-61060</link> <dc:creator>RT</dc:creator> <pubDate>Wed, 27 Jul 2011 14:52:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-61060</guid> <description>environment variables are setup correctly
env returns:
JAVA_HOME=usr/java/jdk1.6.0_26
PATH=usr/java/jdk1.6.0_26/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/admin/bin</description> <content:encoded><![CDATA[<p>environment variables are setup correctly</p><p>env returns:</p><p>JAVA_HOME=usr/java/jdk1.6.0_26<br
/> PATH=usr/java/jdk1.6.0_26/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/admin/bin</p> ]]></content:encoded> </item> <item><title>By: RT</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-61057</link> <dc:creator>RT</dc:creator> <pubDate>Wed, 27 Jul 2011 14:48:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-61057</guid> <description>I keep getting a dependency problem when trying to install tomcat6 on rhel5:
omcat6-6.0.29-1.jpp5.noarch from jpackage-generic-updates has depsolving problems
--&gt; Missing Dependency: java is needed by package tomcat6-6.0.29-1.jpp5.noarch (jpackage-generic-updates)
tomcat6-6.0.29-1.jpp5.noarch from jpackage-generic-updates has depsolving problems
--&gt; Missing Dependency: java is needed by package tomcat6-6.0.29-1.jpp5.noarch (jpackage-generic-updates)
Error: Missing Dependency: java is needed by package tomcat6-6.0.29-1.jpp5.noarch (jpackage-generic-updates)
But, java is installed correctly as far as I can see. java -version returns
java version &quot;1.6.0_26&quot;
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)</description> <content:encoded><![CDATA[<p>I keep getting a dependency problem when trying to install tomcat6 on rhel5:<br
/> omcat6-6.0.29-1.jpp5.noarch from jpackage-generic-updates has depsolving problems<br
/> &#8211;&gt; Missing Dependency: java is needed by package tomcat6-6.0.29-1.jpp5.noarch (jpackage-generic-updates)<br
/> tomcat6-6.0.29-1.jpp5.noarch from jpackage-generic-updates has depsolving problems<br
/> &#8211;&gt; Missing Dependency: java is needed by package tomcat6-6.0.29-1.jpp5.noarch (jpackage-generic-updates)<br
/> Error: Missing Dependency: java is needed by package tomcat6-6.0.29-1.jpp5.noarch (jpackage-generic-updates)</p><p>But, java is installed correctly as far as I can see. java -version returns<br
/> java version &#8220;1.6.0_26&#8243;<br
/> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)<br
/> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)</p> ]]></content:encoded> </item> <item><title>By: Pratap</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-61052</link> <dc:creator>Pratap</dc:creator> <pubDate>Wed, 27 Jul 2011 12:11:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-61052</guid> <description>Why do we need to SET path 2 times the same path??</description> <content:encoded><![CDATA[<p>Why do we need to SET path 2 times the same path??</p> ]]></content:encoded> </item> <item><title>By: alsat</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-59971</link> <dc:creator>alsat</dc:creator> <pubDate>Mon, 13 Jun 2011 17:27:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-59971</guid> <description>I installed sun-java from synaptic package manager and to initialize these variables i did as explained above..
bt i thnk dr z sth wrong wid it.. i cannot start websphere because it returnd an error wid dese variables..
Can any1 tel me wts d proper way of setting these variables and path and in what all files so that it is set for all users system wide?
thnx!</description> <content:encoded><![CDATA[<p>I installed sun-java from synaptic package manager and to initialize these variables i did as explained above..<br
/> bt i thnk dr z sth wrong wid it.. i cannot start websphere because it returnd an error wid dese variables..<br
/> Can any1 tel me wts d proper way of setting these variables and path and in what all files so that it is set for all users system wide?<br
/> thnx!</p> ]]></content:encoded> </item> <item><title>By: zirimu andrew austin</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-59822</link> <dc:creator>zirimu andrew austin</dc:creator> <pubDate>Mon, 06 Jun 2011 11:19:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-59822</guid> <description>Thanks Mustafa, It worked like a charm for me , am using RHEL5</description> <content:encoded><![CDATA[<p>Thanks Mustafa, It worked like a charm for me , am using RHEL5</p> ]]></content:encoded> </item> <item><title>By: csr</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-59764</link> <dc:creator>csr</dc:creator> <pubDate>Fri, 03 Jun 2011 07:15:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-59764</guid> <description>+1 Made my day. Thank you.</description> <content:encoded><![CDATA[<p>+1 Made my day. Thank you.</p> ]]></content:encoded> </item> <item><title>By: haasdas</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-59414</link> <dc:creator>haasdas</dc:creator> <pubDate>Sat, 14 May 2011 18:53:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-59414</guid> <description>I came across this:
sudo update-java-alternatives -s java-6-openjdk
(ubuntu 10.10 for me)
It seems to do a lot of stuff automatically!
Hope it helps some people out there</description> <content:encoded><![CDATA[<p>I came across this:</p><p>sudo update-java-alternatives -s java-6-openjdk<br
/> (ubuntu 10.10 for me)<br
/> It seems to do a lot of stuff automatically!</p><p>Hope it helps some people out there</p> ]]></content:encoded> </item> <item><title>By: Mohammed</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-57424</link> <dc:creator>Mohammed</dc:creator> <pubDate>Wed, 20 Apr 2011 07:04:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-57424</guid> <description>Dear all,
Can anyone help me?
I&#039;ve installed jdk 1.6 update 24 and while opening appliciton its downloadin jdk 1.5,
from backend its showing 1.6 update 24, i&#039;ve tried multiple noluck.
Regards,
Fareed.</description> <content:encoded><![CDATA[<p>Dear all,</p><p>Can anyone help me?</p><p>I&#8217;ve installed jdk 1.6 update 24 and while opening appliciton its downloadin jdk 1.5,</p><p>from backend its showing 1.6 update 24, i&#8217;ve tried multiple noluck.</p><p>Regards,<br
/> Fareed.</p> ]]></content:encoded> </item> <item><title>By: H.Martin</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-56359</link> <dc:creator>H.Martin</dc:creator> <pubDate>Thu, 17 Mar 2011 18:24:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-56359</guid> <description>This does not work!</description> <content:encoded><![CDATA[<p>This does not work!</p> ]]></content:encoded> </item> <item><title>By: ashwin</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-55994</link> <dc:creator>ashwin</dc:creator> <pubDate>Fri, 25 Feb 2011 08:09:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-55994</guid> <description>Hi Sandeep,
Setting java class path in Linux:
I have faced the same problem . How to set it permanently. please help me</description> <content:encoded><![CDATA[<p>Hi Sandeep,</p><p>Setting java class path in Linux:<br
/> I have faced the same problem . How to set it permanently. please help me</p> ]]></content:encoded> </item> <item><title>By: Karthigayan</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-55924</link> <dc:creator>Karthigayan</dc:creator> <pubDate>Wed, 23 Feb 2011 05:10:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-55924</guid> <description>Thanks. This is excellent. This was very useful. Thank Musthafa</description> <content:encoded><![CDATA[<p>Thanks. This is excellent. This was very useful. Thank Musthafa</p> ]]></content:encoded> </item> <item><title>By: Chandrasekar</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-55677</link> <dc:creator>Chandrasekar</dc:creator> <pubDate>Wed, 16 Feb 2011 06:57:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-55677</guid> <description>use &quot;sudo &quot; if you&#039;re using ubuntu.
else try using &quot;su&quot;
Try googling in case both don&#039;t work :D</description> <content:encoded><![CDATA[<p>use &#8220;sudo &#8221; if you&#8217;re using ubuntu.<br
/> else try using &#8220;su&#8221;<br
/> Try googling in case both don&#8217;t work :D</p> ]]></content:encoded> </item> <item><title>By: sandeep</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-55297</link> <dc:creator>sandeep</dc:creator> <pubDate>Wed, 02 Feb 2011 08:59:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-55297</guid> <description>hay it is working...but how can i set permentally  set...the java path
its working only one terminoal  only...
i need permentally java path setting
help me</description> <content:encoded><![CDATA[<p>hay it is working&#8230;but how can i set permentally  set&#8230;the java path<br
/> its working only one terminoal  only&#8230;<br
/> i need permentally java path setting<br
/> help me</p> ]]></content:encoded> </item> <item><title>By: NAVEEN SHARMA</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-52502</link> <dc:creator>NAVEEN SHARMA</dc:creator> <pubDate>Wed, 15 Dec 2010 16:21:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-52502</guid> <description>when I type these above script or command my terminal say &quot;Permission denied&quot;.
Tell the answer
Thanks in Advnace</description> <content:encoded><![CDATA[<p>when I type these above script or command my terminal say &#8220;Permission denied&#8221;.<br
/> Tell the answer<br
/> Thanks in Advnace</p> ]]></content:encoded> </item> <item><title>By: Shanaka</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-50538</link> <dc:creator>Shanaka</dc:creator> <pubDate>Fri, 05 Nov 2010 05:02:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-50538</guid> <description>Thanks This is very useful..</description> <content:encoded><![CDATA[<p>Thanks This is very useful..</p> ]]></content:encoded> </item> <item><title>By: soothsayer</title><link>http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/#comment-49959</link> <dc:creator>soothsayer</dc:creator> <pubDate>Wed, 06 Oct 2010 18:25:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/how-to-set-java_home-path-variables-under-linux-bash-profile/#comment-49959</guid> <description>I dont know what everyone else is saying. I just read the first couple of posts from people and found some people having issues with this.. However I just wanted to thank the person who wrote this article at the first place. The instructions worked perfect for me.. thanks a lot.</description> <content:encoded><![CDATA[<p>I dont know what everyone else is saying. I just read the first couple of posts from people and found some people having issues with this.. However I just wanted to thank the person who wrote this article at the first place. The instructions worked perfect for me.. thanks a lot.</p> ]]></content:encoded> </item> </channel> </rss>
