Questions tagged [java-home]

JAVA_HOME is an environment variable which should point to the root directory of the JDK installation.

JAVA_HOME is an environment variable which indicates the directory where the Java Development Kit (JDK) software is installed.

Setting JAVA_HOME depends on the operating system:

UNIX

  • Korn and bash shells:

    export JAVA_HOME=jdk-install-dir
    
    export PATH=$JAVA_HOME/bin:$PATH
    
  • Bourne shell:

    JAVA_HOME=jdk-install-dir
    
    export JAVA_HOME
    
    PATH=$JAVA_HOME/bin:$PATH
    
    export PATH
    
  • C shell:

    setenv JAVA_HOME jdk-install-dir
    
    setenv PATH $JAVA_HOME/bin:$PATH
    
    export PATH=$JAVA_HOME/bin:$PATH
    

Windows

  1. Right click My Computer > Properties > Advanced system settings
  2. On the Advanced tab, select Environment Variables..., and then add/edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.8.0_60.

or

  1. Go to Control Panel\All Control Panel Items\User Accounts using Explorer
  2. Click on Change my environment variables
  3. Add/edit the JAVA_HOME variable to point to where the JDK software is located
613 questions
0
votes
1 answer

JAVA_HOME issue with Grails

I just installed Grails through sdkman, ie: sdk install grails Evrything seems to have worked fine, But when I type grails -version this error comes out: ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/java-1.7.0- …
NeoVe
  • 3,857
  • 8
  • 54
  • 134
0
votes
1 answer

How to use same Java_Home used during installation?

We are installing agent in windows sytem using recent(at the time of installtion) version of java. At that time of installtion AGENT set its own java path according to JAVA_HOME. Now due to security concern after some interval java is updated. Since…
Rajiv
  • 41
  • 1
  • 6
0
votes
1 answer

iepy django Environment variable JAVAHOME not defined

birdmw@birdmw-thinkpad:~/Desktop/nlp/iepy$ sudo iepy --create iepy Environment variable JAVAHOME not defined. I am having this problem with package IEPY. It is Django and Java related. I feel like I have tried everything to set the JAVAHOME path but…
birdmw
  • 865
  • 10
  • 18
0
votes
1 answer

Celery raised unexpected LookUp Error

I am using celery for my django project. java_path = "/your/Java/jdk/home/java.exe os.environ['JAVAHOME'] = java_path st =…
jennywei
  • 23
  • 4
0
votes
1 answer

Tomcat complaining about botched JAVA_HOME path

I have installed the JDK, to C:\jdk, the JAVA_HOME variable is set to C:\jdk\jdk, and when I echo %JAVA_HOME% I get C:\jdk\jdk. Yet Tomcat complains. The JAVA_HOME environment variable is not defined correctly This environment variable is needed to…
Dominic Bou-Samra
  • 14,799
  • 26
  • 100
  • 156
0
votes
2 answers

Ionic failed to build for Android, JAVA_HOME invalid, failed to run java -version

I already tried to set my JAVA_HOME to C:\Program Files\Java\jdk1.8.0_73 and the path is C:\Program Files\Java\jdk1.8.0_73\bin.
0
votes
3 answers

Not able to set JAVA_HOME variable in ubuntu 14.04 on manual installation

I've downloaded java jdk1.8.0.7.tar.gz file from the official website and unzipped it into my home directory. Now to set the $JAVA_HOME variable I used the follwing commands command nano .bashrc and then appending export…
Shivam Aggarwal
  • 734
  • 2
  • 9
  • 23
0
votes
1 answer

Hadoop cluster JAVA_HOME path not found with Oozie

We have an Hadoop Cluster 2.3 where the JAVA_HOME is set to: (cluster etc/profile) $ echo $JAVA_HOME = /usr/lib/jvm Running an Oozie Check form Ambari results in "everything OK" but when running any oozie command we get an error, e.g. : $ oozie…
AxA
  • 319
  • 5
  • 18
0
votes
1 answer

JAVA_HOME can support x86 and x64 both together?

My OS is win7 x64, and java.com recommend that using java x86 version in your OS x64 or you can install x86 and x64 both in your OS, but the path of Java_Home (JDK or JRE) can using the x86 and x64 at the same time? sorry for the page is…
kyc1109
  • 151
  • 1
  • 7
0
votes
1 answer

Two JVMs and setting the environment variable having issues

I am working on two projects one uses JDK 8 and other uses JDK 6. I installed both the jdks in my machine where JDK8 is set as my default JVM. so I am good with one project settings. When I am working on second project, I tried to change JAVA_HOME…
0
votes
1 answer

how to configure jasper report server "JAVA_HOME" in centos?

my java_home is (echo $JAVA_HOME >> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre) when starting installing jasper report this warning is shown "WARNING: JAVA_HOME environment variable not found [default] " thanks for help.
taymaz
  • 1
  • 3
0
votes
2 answers

When causing a makefile to change directory and run ant in that new directory error "JAVA_HOME is not defined correctly"

Even if you have Java and/or ant installed through the windows installers, you still need to set your environment variables. Make sure you are linking your java to a JDK rather than a JRE, my guess as a newbie is that when you are compiling your own…
user5381396
0
votes
0 answers

java.util.logging.LogManager.readConfiguration -- java.lang.Error: Can't find java.home?

Getting following error while running UT cases in TestNG: FAILED: TC1 java.lang.Error: Can't find java.home ?? at java.util.logging.LogManager.readConfiguration(LogManager.java:1295) at java.util.logging.LogManager$3.run(LogManager.java:399) at…
quintin
  • 812
  • 1
  • 10
  • 35
0
votes
0 answers

$JAVA_HOME not found on Linux Mint 17 (hbase)

I have a problem installing hbase on my computer. I'm currently running Linux Mint 17. Everytime i want to start hbase (over start-hbase.sh) it says that it can't find $JAVA_HOME. If i write echo $JAVA_HOME in my shell the output is:…
tobi
  • 1
  • 1
0
votes
2 answers

How to skip variable dereferencing in Maven for specific file?

I have Maven project in Jenkins, Jenkins is running on Windows Server 2012. There is init.script in the project with following line which I want to keep untouched: echo "export JAVA_HOME=${JAVA_HOME}" >> ${CMD_START} The issue is that after…
antrost
  • 105
  • 4