JAVA_HOME

hi..im new to java....im getting the following error message when i try to execute the command mvn -v.can any abody tell me y it is coming???
ERROR: JAVA_HOME is set to an invalid directory.
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_16;.
Please set the JAVA_HOME variable in your environment to match th
location of your Java installation

the error seems very clear to me: the JAVA_HOME environmental variable does not contain a valid path.
The value as it is now: C:\Program Files\Java\jdk1.5.0_16;.
The value as it should be: C:\Program Files\Java\jdk1.5.0_16
To fix this you need to change the JAVA_HOME variable in your environmental variable properties. (right click my computer, choose properties, advanced, environmental variables).

Similar Messages

  • EmCCR reports JAVA_HOME does not contain a valid JDK/JRE

    Greetings,
    I am seeing occasional emails from several OEM monitored targets reporting this issue. I have found a couple of support notes, 976112.1 & 832949.1 and understand the problem but am still unclear on a couple of things and hoping someone can assist me.
    1) how to set the $JAVA_HOME variable. jdk is installed in both the $ORACLE_HOME and $AGENT_HOME directories. Does it matter which jdk I use?
    2) The ccr directory is a subdirectory of the $ORACLE_HOME directory and the emCCR.jar file is also there. I assume that is the required jar file and so my $PATH must include that. Does that also mean the $JAVA_HOME variable should point there rather than at the $AGENT_HOME/jdk?
    3) Note 976112.1 suggests setting the $JAVA_HOME variable in then running setupCCR. I do not find a setupCCR but I do find a configCCR. I am not sure which is the correct executable to use. emCCR status shows I have 12.0.0.0.1 installed -
    iamdev1:product/11.2.0.2/dbhome_1/ccr/bin->./emCCR status
    Oracle Configuration Manager - Release: 12.0.0.0.1 - Production
    Copyright (c) 2005, 2013, Oracle and/or its affiliates.  All rights reserved.
    Start Date               04-Jan-2014 12:08:55
    Last Collection Time     21-Jan-2014 12:07:00
    Next Collection Time     22-Jan-2014 12:07:00
    Collection Frequency     Daily at 12:07
    Collection Status        idle
    Log Directory            /usr/local/oracle/product/11.2.0.2/dbhome_1/ccr/hosts/devon/log
    Registered At            12-Jun-2011 12:07:47
    Automatic Update         On
    Collector Mode           Connected
    4) I am also unclear as to which documentation I should follow.
    Any help or suggestions are greatly appreciated. Thank you.
    Bill Wagman

    Hi Solomon,
    Please cross check your settings with the following post about "configuring WLS (10.3.2) on Mac".
    http://forums.oracle.com/forums/thread.jspa?messageID=4008200&#4008200
    - Ram

  • Error with JAVA_HOME enviro variable

    I'm running win2k Pro. I installed first j2sdk1.4.1 and then tomcat 4.1.12 on my e:\. When I click START TOMCAT i recieve the error in a dialog box:
    Cannot find the file '-Djava.endorsed.dirs='(or one of its components). Make sure the path and filename are correct and that all required libraries are available
    Also in the command prompt it describes the error as:
    The JAVA_HOME environment variable is not defined
    This environment variable is need to run this program
    Using CATALINA_BASE: ..
    Using CATALINA_HOME: ..
    Using CATALINA_TMPDIR: ..\temp
    Using JAVA_HOME:
    I've set my environment variables as the following
    JAVA_HOME - e:\j2sdk1.4.1
    CATALINA_HOME - e:\Tomcat
    CLASSPATH - e:\Tomcat\common\lib\servlet.jar
    PATH - c:\WINNT;c:\WINNT\SYSTEM32\cmd;e:\j2sdk1.4.1

    I have exactly the same problem with the environment variables.
    I am running Win Me;
    I have all the environment variables set in AUTOEXEC.BAT, including the PATH ; but after many tests I am convinced that autoexec.bat is not being run at all;
    I tried adding an auto batch command file to be run every time a dos box was opened but while that runs ok it still leaves the problem outstanding;
    ie startup wont run through, claiming that the environment variables are not set:
    This is what I have set in autoexec.bat
    set PATH=C:\Java\j2sdk1.4.1_02\bin;C:\orawin95\bin;C:\WINDOWS;C:\WINDOWS\COMMAND
    SET JAVA_HOME="C:\Java"
    SET CATALINA_HOME="C:\Tomcat\jakarta-tomcat-4.1.24"
    ANy help/advice appreciated

  • Getting this error :NB: JAVA_HOME should point to a JDK not a JRE

    HI All
    I've installed jdk1.5.0_06 in windows enviroment.i've correctly set the java_home path for it.
    Apart from it i've installed two servers one is Weblogic 9.1 and Tomcat 5.5 and NetBeans 5.5.1.
    While running my project with the netbeans it tried to start the server. On starting the Tomcat server it showed me this error in the Tomcat log.
    NB: JAVA_HOME should point to a JDK not a JRE
    but while running Weblogic it worked smoothly. the java_home path has both the paths of jdk1.5 (installed separatly ) and the one which is bundeled with weblogic(jdk1.5)
    Could anyone tell me the solution for the error.while running the project sseparatly is working fine. but i am not able to run it from NetBeans.

    By why it is so that we bin folder was not selected,
    because when i earlier installed weblogic then at
    that time weblogic automatically made this entry
    using its own internal jdk and the path was till bin.A JAVA_HOME directory should point to a directory containing all the java related stuff. The bin part is appended while executing javac or java command. Weblogic might be using the JAVA_HOME variable differently.

  • 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.

  • Setting up JAVA_HOME env variable

    Hi,
    I am a linux user trying to kill my tomcat server. I try to run an .sh script and
    I get the following error
    tomcat/bin> ./shutdown.sh
    The JAVA_HOME environment variable is not defined correctly
    This environment variable is needed to run this program
    NB: JAVA_HOME should point to a JDK not a JRE
    How do I know where to point my environment variables to??

    tomcat/bin> ./shutdown.sh
    The JAVA_HOME environment variable is not defined
    correctly
    This environment variable is needed to run this
    program
    NB: JAVA_HOME should point to a JDK not a JREIf this means something to you...
    your environment should be set to a JDK directory [ [i]containing tools.jar in the lib sub-directory ] instead of a JRE.
    export JAVA_HOME=/usr/local/jdk50

  • 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 is not set

    dear all
    i have problem i cant install data base of primavera p6 r 8.2 i have new lap with windows 7 when i instal database the commad prompt open and there are massage java_home is not set i checked the path of variable java home by command ( cd %java_home%) and the massage was C:\Program Files\Java\jre7\bin the problem still there what can i do ???????????????????????????????????????????????????????????

    Create three java variables for P6 installation,follow the below procedure.
    I installed java in C:\Java32\ so created the variables like this;
    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

  • JAVA_HOME is not defined correctly

    Hi everyone.
    I'm trying to run a java program I made for school but I keep getting the message in the debugger console:
    [ Session started at 2010-09-07 01:52:54 -0400. ]
    Error: JAVA_HOME is not defined correctly.
    We cannot execute /System/Library/Frameworks/JavaVM.framework/Home/bin/java
    The Debugger has exited with status 1.The Debugger has exited with status 1.
    I'm working with Xcode 3.2.3 and the java template is Java Tool. Can anyone help me fixing this?
    Thank you very much

    Grrrr. Been having a similar problem, but with Maven2. Allow me to (hopefully) save someone the gnawing of teeth and several bald patches.
    For starters, the Maven documentation gives you a pretty clear example of how to set your PATH. This is as follows:
    export PATH=/usr/whatever/whateveragain/apache-maven-2.0.10/bin:$PATH
    Simple, eh? Note the colon before $PATH. Then, it states quite presumptuously "4) Make sure JAVA_HOME is set to the location of your JDK". However, you don't set it in exactly the same way. You set it in virtually the same way, except without the colon, like this:
    export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0$JAVA_HOME
    Note that if you get the paths wrong a couple of times, you may reset them with the unset command. So to unset JAVA_HOME you'd use:
    unset JAVA_HOME
    After which you may set it again. As is advised, you may try to set the user privileges, but they didn't seem to affect my luck at all. Hope this helps!

  • 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 on Tomcat

    how do i set the environmental variable JAVA_HOME to point to my jdk directory which is c:\\jdk1.3.1_02\
    somebody please help me!!
    ive been trying to setup this servlet engine for 5 days now and i still cant get it to work :(
    i keep getting an error that i need to setup my JAVA_HOME variable when i try to run bin\startup
    any help would be greatly appreciated

    this is what i got after "bin\startup" in dos after typing exactly what you had
    2002-04-13 19:16:12 - ServerXmlReader: Config=$TOMCAT_HOME\conf\server.xml
    2002-04-13 19:16:12 - PathSetter: home=C:\Documents and Settings\Ivo\Desktop\jak
    arta-tomcat-3.3.1
    2002-04-13 19:16:12 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-12
    7.0.0.1.xml
    2002-04-13 19:16:12 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-ad
    min.xml
    2002-04-13 19:16:12 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-ex
    amples.xml
    2002-04-13 19:16:12 - AutoWebApp: Loaded from config: DEFAULT:/admin
    2002-04-13 19:16:12 - AutoWebApp: Auto-Adding DEFAULT:/
    2002-04-13 19:16:12 - AutoWebApp: Loaded from config: DEFAULT:/examples
    2002-04-13 19:16:12 - ContextManager: Tomcat configured and in stable state
    2002-04-13 19:16:13 - ContextManager: Adding DEFAULT:/admin
    2002-04-13 19:16:13 - ContextManager: Adding DEFAULT:/examples
    2002-04-13 19:16:13 - ContextManager: Adding DEFAULT:/ROOT
    EmbededTomcat: Init time 1292
    2002-04-13 19:16:13 - Http10Interceptor: Starting on 8080
    2002-04-13 19:16:13 - Ajp12Interceptor: Starting on 8007
    2002-04-13 19:16:13 - Ajp13Interceptor: Starting on 8009
    EmbededTomcat: Startup time 471
    does there seem to be anything wrong with this?
    needless to say i still get the Server Error: BAD URL :(
    it would greatly appreciated if anyone can help me get through this problem
    ivo

  • JAVA_HOME not defined

    After successfully installing Tomcat on my Windows 2000 PC (which already has JDK1.2.2 up and working) I did this in DOS:
    SET JAVA_HOME=C:\jdk1.2.2
    and DOS did not object, so I assumed it worked. (However, I'm not schooled in DOS and so I'm not sure.)
    When I double-click the Start Tomcat shortcut icon, a blank DOS window flashes momentarily, but nothing else happens.
    But when I try to start Tomcat by double-clicking startup.bat I get a dialog box with white X on a red circle which says, "Cannot find the file
    '-Djava.endorsed.dirs=' (or one of its components). Make sure the path and filename are correct and that all the required libraries are available."
    And the DOS window says:
    The JAVA_HOME environment variable is not defined
    This environment variable is needed to run this program
    Using CATALINA_BASE: ..
    Using CATALINE_HOME: ..
    Using CATALINA_TMPDIR ..\temp
    Using JAVA_HOME:
    Any suggestions would be most helpful. Thanks!!!

    For windows 2000, go to Control Panel and launch System. Then select Advanced tab and click on Environmental Variables. Add a new variable named JAVA_HOME and its associated directory.
    In the newer windows like 2000, the command prompt is not like the older windows DOS. Using SET JAVA_HOME=C:\jdk1.2.2 only sets the variable for one command prompt window.

Maybe you are looking for