Regarding JAVA_HOME

Hi friends,
I get confused between PATH,JAVA_HOME and CLASSPATH variables.
I know that PATH is searched by the OS when commands like javac,java are fired .so PATH should contain the JDK path.
CLASSPATH should contain the jar files which are used in your programs.
I may be wrong in my interpretation . But ,I get really confused as what JAVA_HOME is required for .
Kindly help me .Or provide me with some useful links .
Thanks

Java home is the canonical way to refer to the java instalation diretory. This is usefull so that applications can use it in an uniform way. It must point to the root of your java instalation, for example:
c:\jsdk1.4
/usr/local/jsdk1.4
so tha you can refer to the bin dir as being
%JAVA_HOME%\bin
$JAVA_HOME/bin
In scripts like ant you could have:
<property name="java.bin" location="${env.JAVA_HOME}\bin" />
and so on.
May the code be with you.

Similar Messages

  • Setting Up the SOAHello Applicaiton

    The install instruction specify 3 environment variables and I would like confirmation and clarificaiton regarding these please.
    JOH: This is just the root directory where I unzip the jdevstudio11 application?
    JDEV_USER_DIR: This is a new directory that I create on the same drive as my JOH is on?
    JAVA_HOME: Points to the Java SE 5 JDK.
    Regarding JAVA_HOME, if I'm reading the setup correctly then there is a Java SE 5 JDK included in the unzipped jdevstudio directory (ex: C:\Oracle\JDeveloper11g\jdk) and I should point to this JDK since this is the one used to build the jdevstudio?
    If I'm not to point to the jdk directory within the unzipped file path should I download a particular release of Java to point to? Also, the extracting the downloaded Java it places the jdk in the Program Files/Java directory which would appear to violate the no space requirement. Would I then need to copy this to a different directory without spaces?

    See inline here:
    JOH: This is just the root directory where I unzip the jdevstudio11 application?
    [Heidi] Correct. This env variable is only necessary for following the instructions in the document. The software doesn't use it.
    JDEV_USER_DIR: This is a new directory that I create on the same drive as my JOH is on?
    [Heidi] Yes: New. No spaces in path. Same drive as JOH.
    JAVA_HOME: Points to the Java SE 5 JDK.
    [Heidi] Yes. Used if using base version of JDev. We recommend full version for Windows so you do not set it in that case.
    Regarding JAVA_HOME, if I'm reading the setup correctly then there is a Java SE 5 JDK included in the unzipped jdevstudio directory (ex: C:\Oracle\JDeveloper11g\jdk) and I should point to this JDK since this is the one used to build the jdevstudio?
    [Heidi] JAVA_HOME should not be set at all when using the full (non-base) version of JDev.
    If I'm not to point to the jdk directory within the unzipped file path should I download a particular release of Java to point to? Also, the extracting the downloaded Java it places the jdk in the Program Files/Java directory which would appear to violate the no space requirement. Would I then need to copy this to a different directory without spaces?
    [Heidi] If you do download Java and install it then yes, move it outside of that path with spaces (this is a temporary problem in TP3 only and will be fixed).
    Heidi.

  • How to set JAVA_HOME in REDHAT 9.0 Linux?

    I was trying to set JAVA_HOME in profile file, but unable to decide where to put the java_home path. Can anyone guide me?
    J2sdk and JRE are in /USR/JAVA

    It is sufficient to set PATH.
    In Unix (including Linux) most file systems are case-sensitive regarding the file and directory names. So /USR/JAVA is different from /usr/java.

  • JAVA_HOME Environment Variable "Not Available"

    I have installed j2sdk 1.4.2_17 for Windows Server 2008 64 bit for an installation of ERP 6.0.  I have installed this in the following directory:
    C:\j2sdk14217x64
    - I have the JAVA_HOME variable (User variable for Administrator and System variable) set to: C:\j2sdk14217x64
    - I have the PATH system variable (System variable) set to: C:\j2sdk14217x64\bin
    When running the prerequisite checker I get the following error:
    "It is not recommended to use JDK version 1.4.2_10. Current version: JAVA_HOME not available."
    When I run %JAVA_HOME% from the command line the system finds it.  I'm not sure what the issue is here.

    Hello,
    Best to unistall JDK and reinstall latest one
    There is a download page solely for SAP customers:
    http://www.sun.com/software/javaforbusiness/sap_download.jsp
    See notes
    709140 Recommended JDK and VM Settings for the WebAS630/640/7.0
    Note 716604 for the Sun JDK (Windows, Linux, Solaris)
    regards,
    John Feely

  • Java_Home Could not Check

    Dear All,
    1)  i have installed  JDK version  1.4.2_10 ,   when i executed the Checklist  i got an error Message
    It is not recomended to user JDK version  1.4.2_10  Current Version : JAVA_HOME not available. See also SAP Note 867110.
    Condition          Result Code      Severity
    Java_HOME     could not check    HIGH
    i have gone through the Note. and  i have set the Environment Variable also.
    2)   When i am trying to install the Solution Manager 7.0. i am able to find the path by which i can install Centeral Instance.
    Installation CD : 51033517_11
    Please Guide the Process.
    Regards
    SNB

    Hi,
    As per your mail , the error is JAVA_HOME environmental is missed.
    1. For  Windows, You will set the following ENV variable.
    JAVA_HOME = C:\java142 like this...
    Right click on mycomputer>goto properties>click on Advanced>click on Environment variables> clieck on Add New option--> Then JAVA_HOME, after that give value = Java path.
    For UNIX (Depending on your OS like AIX/HP/SOLARIS)
    JAVA_HOME = /usr/tmp/java142 (this path is for example)
    2. Use Installation Master CD/DVD, then click on sapinst.exe on windows based and Unix based you will have to give command ./sapinst
    These are all depending on your OS level.
    Regards,
    Srini Nookala

  • JAVA_HOME and JDK

    Hi,
    I installed the Java SDK a while ago, how do I check that I have the JDK with it? The reason why I ask is because I want to set the JAVA_HOME variable and not sure where I must map it to? When I installed the SDK it installed everything under C:\Sun\SDK\. I am running Windows XP.
    What are environmental variables used for? I am a C# developer and I am new to this Java setup.
    Regards
    Brendan

    The compiler with the JDK is called javac and the JVM is invoked with java. You'll find both under the bin directory of your SDK installation.
    The JAVA_HOME variable points to your JDK directoryso it'll be the path that you've given. The PATH variable should point to the bin directory under JAVA_HOME so that you can run javac and java and the CLASSPATH variable should be '.' unless you need to add anything else ( like Tomcat's servlet-api.jar).
    This link[1] should help you out loads.
    [1] http://ist.berkeley.edu/as/ag/technology/howto/install-java-sdk-win.html
    Edited by: nogoodatcoding on Oct 20, 2007 10:39 PM

  • JAVA_HOME & CATALINA_HOME

    I just want to know how to set environment variable on JAVA_HOME
    and CATALINA_HOME on windows 2000. I tried to run the setup of
    jakarta-tomcat-4.0 but I encounter an error because of this.
    Thanks

    Go to:
    Start
    Configuration
    Control panel
    System
    Advanced
    Variable enviroment
    new
    Variable Value
    CATALINA_HOME c:\directory_name_jakarta_tomcat
    by example:
    CATALINA_HOME C:\jakarta-tomcat-4.0.3
    Here is a helpful link:
    http://www.moreservlets.com/Using-Tomcat-4.html#Catalina-Home
    Best regards,
    Mary

  • JAVA_HOME settings  - problem

    Hello,
    I am a Fedora user.
    I installed apache tomcat to this location in my computer: /usr/local/apache-tomcat-5.5.20
    When I want to run the "./startup.sh " command, I receive this error:
    Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
    At least one of these environment variable is needed to run this program
    It is normal.. Then I set the JAVA_HOME as following:
    export JAVA_HOME=/usr/java/jdk1.5.0_10
    However, I still receivethe same error:
    Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
    At least one of these environment variable is needed to run this program
    I am new in Linux and I could not understand why I receive this error even if I set the JAVA_HOME. Any recommendation would help me a lot!
    Thanks & Regards
    hs

    Hello again,
    If I set the JAVA_HOME on the console and run the startup script, tomcat works.
    If I set the JAVA_HOME on the console but try to run the startup script on another console it does not work.
    Permanent solution: (I am directly writing the instructions that I got from http://ubuntuforums.org/archive/index.php/t-44006.html)
    You need to point out where you installed Java SDK. You will have to edit the file '.bashrc'. Backup this file first!
    In terminal type:
    gedit ~/.bashrc
    Add the following lines to the file:
    #Stuff we added to make tomcat go
    export JAVA_HOME=/usr/lib/j2sdk1.5-sun/
    export CLASSPATH=/usr/local/tomcat/common/lib/jsp-api.jar:/usr/local/tomcat/common/lib/servlet-api.jar
    This was probably an experience problem. Thank you very much for the answer!
    Happy new year! :-)
    hs

  • JAVA_HOME path error in hadoop command line

    Hi All,
    Am new to hadoop, i did the hadoop installation in windows by following the link as follows
    http://www.codeproject.com/Articles/757934/Apache-Hadoop-for-Windows-Platform
    but here when i run any thing from hadoop command line am getting the following error
    C:\hadoop-2.3.0\bin>hadoop version
    The system cannot find the path specified.
    Error: JAVA_HOME is incorrectly set.
           Please update C:\hadoop-2.3.0\conf\hadoop-env.cmd
    i had given a paths like this.
    and upto bin in path system variable
    The hadoop command line error is as follows, the path it is showing to update JAVA_HOME path is not there in my hadoop directory i.e conf folder is not there
    Please help me to resolve this.

    Hi
    This forum is specific to Microsoft Azure HDInsight service. It does not support the other ways through which you can install Hadoop on Windows as well (Your scenario is also in that category). I suggest you post your questions in the codeproject forum from
    where you got the installation steps.
    Regards.
    Debarchan Sarkar - MSFT ( This posting is provided AS IS with no warranties, and confers no rights.)

  • JAVA_HOME Error

    Hi Friends,
    I am trying to install SAP Sol Mgr 4.0 SR2 on Win 2003 Enterprise Edition.
    Prerequisites check error -
    Condition - JAVA_HOME
    RESULT CODE - COuld not Check
    Severity - HIGH
    Message - It is not recommendedto use JDK version 1.4.2_10. Current version: JAVA_HOME not available. See also SAP note 867110 (updated 2006-06-12)
    I installed Java - j2sdk-1_4_2_17-windows-amd64.exe and also I added the JAVA_HOME variable.
    Let me know what should be done. Shall I ignore and proceed with installation.
    Regards,
    B

    Hi Ashok Dalai,
    Thanks for your reply.
    I tried j2sdk1.4.2_13-x64, j2sdk1.4.2_17-x64 and j2sdk1.4.2_21-x64
    Same issue with all of them. I can see the java version in command prompt.
    I also maintained the JAVA_HOME variable and value.
    I tried to find out in www.service.sap.com/pam. It says - SUN JSE 1.4.2 64BIT       WINDOWS SERVER 2003/X64 64BIT       Released       26.05.2006. But I installed the same version I guess.
    Please help me to get rid of this error.
    Regards,
    B
    Edited by: bp.sap on Jul 26, 2009 11:38 PM

  • P6v7 Web Services Oracle Universal Installer Error Setting Java_Home veriab

    Hi,
    I am installing Primavera P6 v7 web serivces on a Ms Windows 2003 SP2 server machine but it gives error "error setting Java_Home environment variable" every time i run the oracle universal installer setup of P6 v7 web services. I have already installed Java JRE1.6.0_14 and set the JAVA_HOME variables in both system and user variables. I have also tried manually setting path of JAVA during setup but no luck so far everytime same error. I have been looking at the log file in oracle inventory folder but did not find any hint to resolve the issue.
    Please suggest a solution or workaround.
    Regards,
    Shahid

    r u using 32bit or 64bit java?? better to use 32 bit java. Create 3 variable for EPPM P6
    1) variable name: JAVA_HOME Value: c:\Java32\JRE1.6.0_27
    2) variable name: JRE_Location value: c:\Java32\jdk.1.6.0_27\jre
    3) variable name: p6_java_home value: c:\Java32\jdk.1.6.0_27

  • Activation error - Perhaps JAVA_HOME does not point to the JDK

    Hi all,
    After compiling and building my application locally I checked in the activity but activation failed with the following log:
    Perhaps JAVA_HOME does not point to the JDK
         at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
         at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:112)
         at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61)
         at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:218)
         at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:195)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:347)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)
         at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1495)
         at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:727)
         at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:503)
         at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:442)
         at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:314)
         at com.sap.tc.buildcontroller.CBSBuildController.exec(CBSBuildController.java:252)
         at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:207)
         at com.sap.tc.buildcontroller.CBSBuildController.main(CBSBuildController.java:168)
    This happen suddenly since build was successfull till last friday, so we're sure that something changed in server configuration but we don't know what... now we need to make the server works again!
    thanks for any help.
    Stefano

    Hi ,
    Check the jdk versions in SDM and your machine.
    Make sure the JAVA_HOME environment variable is set to correct jdk version which is used by sdm.
    Where to check the JDK version in sdm:
    You can check which jdk is being used from the following file: /usr/sap/<SID>/<INSTANCE>/SDM/program/config/sdm_jstartup.properties
        under value of property "sdm.JavaPath"
    Go to your system desktop and select mycomputer->rightclick and select properties ->
    Advanced ->environment variables ->System Variables check the variable JAVA_HOME=c:\jdk1.6
    Both jdk versions should be same.Then only sdm will deploy the appl properly.
    Regards,
    Lavanya.G

  • Java_home in Unix

    Hi,
    I have SAP on Tru64 Unix.
    I am not able to find Java home directory.
    Environment variable does not content any java_home variable.
    Java is installed on system.
    Does anyone has idea about that.
    Regards,
    Payal

    hello Payal
    u can find java_home in /usr/opt directory or /opt directory
    hope this may help u
    reward points if sounds helpful
    regards
    Shoeb

  • Regarding sap nstallation master startup

    i donot know installation of the IBM jdk1.4.2_18amd64.rpm
    when i trying executing command rpm -i IBM jdk1.4.2_18amd64.rpm from terminal.
    it saying that libxp.so.6 is required
    so where it can be download
    my system configuration is
    os: RHEL 5.0
    processor is intel duo core processor 64 -bit
    RAM:2GB
    HARDDISK :250 DISK
    i just copied the IBM jdk1.4.2_18amd64 folder to /opt folder
    i give the environment varaiables like this
    export JAVA_HOME=/opt/IBM jdk1.4.2_18amd64
    export PATH=/opt/IBM jdk1.4.2_18amd64/bin
    export SAPINST_JRE_HOME=/opt/IBM jdk1.4.2_18amd64/jre
    i execute the command line also java -version
    it says
    ibm java version 1.4.2
    jit (enabled) and extra
    i declared environment variable correctly but sap installamaster connot initializing
    it saying that while executing tmp uname 7 command line got error
    (in tmp directory sap3322.exe folder)
    regards
    sudheer

    > when i trying executing command rpm -i IBM jdk1.4.2_18amd64.rpm from terminal.
    > it saying that libxp.so.6 is required
    > so where it can be download
    Read Note 1048303 - Red Hat Enterprise Linux 5.x: Installation and upgrade
    The necessary libraries are part of the Redhat installation media. Check that you have installed all necessary pacakges.
    > i declared environment variable correctly but sap installamaster connot initializing
    > it saying that while executing tmp uname 7 command line got error
    > (in tmp directory sap3322.exe folder)
    Please post the exact error.
    Markus

  • Question regarding JRockit

    Hi All,
    Question regarding JRockit.
    I do not know this software nor am I a java developper.
    What I would like to do is monitor JVM running inside OC4J in Oracle e-Business Suite.
    Could this tool be use to do so?
    Also, I think want I really need is JRockit Misson Control. Can I simply install JRMC or do I need to install JRockit then MC?
    Thanks to share some lights :)

    I am not sure if JRockit is ceritified with OC4J on EBS, but I seriously doubt it.
    You could look into a utility called jvisualvm which resides in $JAVA_HOME/bin
    Documented here: http://docs.oracle.com/javase/6/docs/technotes/guides/visualvm/index.html

Maybe you are looking for