<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Which Java is being used. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/which-java-is-being-used/m-p/6049297#M54256</link>
    <description>&lt;P&gt;First, you will need to determine the command and/or environment settings used when starting the Java application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the application is started with a script, you will need to check the script: there might be lines that set JAVA_HOME and/or PATH environment variables to point to a particular version of Java.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Java version is not determined explicitly at the application start-up script, you will need to look at the environment of the user that normally runs the application. The login scripts for that user might include JAVA_HOME and/or PATH settings that determine which version of Java will be used by default by that user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there are no application-specific nor user-specific settings, then you might use "which java" to see the pathname of the default Java interpreter (if there is a default Java interpreter).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, "java -version" might be useful to identify the manufacturer of a particular instance of Java.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you see a "java" process in the process listing and want to know which version of Java it uses, make note of the PID of the process, then run "ls -l /proc/&amp;lt;PID&amp;gt;/exe". That will tell you the exact pathname of the java binary it uses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through the proc filesystem you can also take a peek at the environment variables of any running process, with a command like "strings /proc/&amp;lt;PID&amp;gt;/environ | less".&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2013 12:15:49 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2013-05-02T12:15:49Z</dc:date>
    <item>
      <title>Which Java is being used.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-java-is-being-used/m-p/6049013#M54255</link>
      <description>&lt;P&gt;Hello Alll,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have Red hat Linux servers running SAP application. We have IBM and SUN java installed in it. Going further we will be installing SAP java. I am not sure which java is being used of the IBM and SUN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i find which Java is being used i.e. IBM or SUN? Any specific command i can use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 09:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-java-is-being-used/m-p/6049013#M54255</guid>
      <dc:creator>vijay alur alur</dc:creator>
      <dc:date>2013-05-02T09:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Which Java is being used.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-java-is-being-used/m-p/6049297#M54256</link>
      <description>&lt;P&gt;First, you will need to determine the command and/or environment settings used when starting the Java application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the application is started with a script, you will need to check the script: there might be lines that set JAVA_HOME and/or PATH environment variables to point to a particular version of Java.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Java version is not determined explicitly at the application start-up script, you will need to look at the environment of the user that normally runs the application. The login scripts for that user might include JAVA_HOME and/or PATH settings that determine which version of Java will be used by default by that user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there are no application-specific nor user-specific settings, then you might use "which java" to see the pathname of the default Java interpreter (if there is a default Java interpreter).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, "java -version" might be useful to identify the manufacturer of a particular instance of Java.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you see a "java" process in the process listing and want to know which version of Java it uses, make note of the PID of the process, then run "ls -l /proc/&amp;lt;PID&amp;gt;/exe". That will tell you the exact pathname of the java binary it uses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through the proc filesystem you can also take a peek at the environment variables of any running process, with a command like "strings /proc/&amp;lt;PID&amp;gt;/environ | less".&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 12:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-java-is-being-used/m-p/6049297#M54256</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2013-05-02T12:15:49Z</dc:date>
    </item>
  </channel>
</rss>

