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

bash: bin/hadoop: No such file or directory(hadoop 2.7.3 on ubuntu 16.04)

I tried installing hadoop 2.7.3 on ubuntu 16.04 desktop. I installed java and checked it's version as: hadoop@ubuntu:~$ java -version openjdk version "1.8.0_91" OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14) OpenJDK…
Nilesh
  • 1
  • 1
  • 2
0
votes
4 answers

java version in JAVA_HOME and PATH are mismatch

I have 02 questions : 1 - I try to run Eclipse neon in my Ubuntu 14.04 and i'm getting this Error I think this problem is linked to java version (Eclipse neon required java 8) ?? 2 - So, I check my java version , take what i get java…
zebiri djallil
  • 324
  • 2
  • 6
  • 17
0
votes
3 answers

Is it possible to setup 2 JAVA_HOME in Linux?

I am using RHEL 6.8. Is it possible to set up a 1.8 server JRE path in JAVA_HOME in Linux when the JDK is 1.7.0_45? I need both of the java versions and two JAVA_HOME. Thanks in advance!
Nagma
  • 5
  • 1
  • 4
0
votes
0 answers

JAVA_HOME is invalid for Ionic run android

This is the image for the error i have encounted, as you can see, I have already targetted the JAVA_HOME into the jdk, as for my PATH, i have already targetted to the bin of the jdk which is.. D:\Program Files\Java\jdk1.8.0_101\bin Is there anyone…
0
votes
0 answers

Bad version number in .class IntelliJ

I am facing this error while building/importing my project on IntelliJ 2016.2(64). Bad version number in .class file My java home is set to Java 1.5 Update 22 (64 bit). I need to use this version of Java, specifically. Is there a way I can do…
user6605213
0
votes
2 answers

Apache Tomcat - Ubuntu Setup

In order to get tomcat working on my ubuntu, i downloaded "apache-tomcat-8.5.4.tar.gz"-file Next i decompressed it and moved it to an other location: tar -xvzf apache-tomcat-8.5.4.tar.gz sudo mkdir -p /opt/tomcat sudo mv apache-tomcat-8.5.4…
Creative crypter
  • 1,348
  • 6
  • 30
  • 67
0
votes
1 answer

Error launching android studio says no jvm installed

I have installed Android studio on windows 64 bit. When I try to open the application I get a pop up message saying " no JVM installation found. Please install a 64 bit JDK. If you already have a 64-bit JDK installed, define a JAVA_HOME variable in…
0
votes
0 answers

Windows 10 Environment Varibles issue

I have set JAVA_HOME, CATALINA_HOME, MAVEN_HOME in system variables as sys admin. still after every restart the command line forgets everything and prints like ;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%CATALINA_HOME%\bin Tried reboot, shutdown and new…
user530874
  • 51
  • 1
  • 7
0
votes
2 answers

Setting JAVA_HOME variable

I try to set JAVA_HOME variable on an ubuntu server. I get the Java path with this command which java /usr/bin/java I set the result in /etc/environment JAVA_HOME="/usr/bin/java" When I try to run a mvn command I get this error Error: JAVA_HOME…
user3235881
  • 487
  • 2
  • 9
  • 24
0
votes
0 answers

JAVA_HOME not visiable in system variables

After downloading and instaling Java 8 JDK on Windows 10 i wanted to make sure that JAVA_HOME system variable is set correctly, however in Enviroment variables JAVA_HOME is not defined. Do i have to create such variable manually and set it to…
Akka Jaworek
  • 1,970
  • 4
  • 21
  • 47
0
votes
1 answer

SQL Developer won't start - only from terminal

I downloaded SQL Developer 4.1.3.20. Before that, I installed JDK 8. I am using a MacBook with El Capitan. Now, when I start it by clicking on the symbol, it shows a bar with about 10% loaded but never continues to load. Thanks to stackoverflow I…
Nina
  • 681
  • 1
  • 10
  • 27
0
votes
0 answers

Problems with JAVA_HOME variable

I have a simple batch file script that I am attempting to run which is as follows: @echo Starting MI Web Service: Creating CACERTS KeyStore ... @del certs\cacerts.jks @"%JAVA_HOME%\bin\keytool" -genkey -alias foo -keypass foobar123 -keystore…
Jay
  • 3,012
  • 14
  • 48
  • 99
0
votes
2 answers

Linux Maven config - setting JAVA_HOME breaks Maven

I am attempting to setup a Maven-Tomcat build on Linux. Stepping through the configuration processes, I have encountered a problem. As title says, setting the JAVA_HOME in .bashrc will break my Maven configurations. Without JAVA_HOME set, Maven…
Catresl
  • 195
  • 2
  • 15
0
votes
1 answer

How to setup CircleCI environment JAVA7_HOME for RetroLambda

I am using retrolambda in my Android application, and using circleci.com as continuous integration for my github repo. the problem is I have configured my local mac environment for Java_Home and Java7_Home, and everything is okay, but I don't know…
Mohsen Mirhoseini
  • 8,454
  • 5
  • 34
  • 59
0
votes
0 answers

set up JAVA_HOME in Class Dependency Analyser tool

I would like to install the tool, Class Dependency Analyser tool. I downloaded the software, which is a zip file. I did unzip. It contains a .sh file called cda.sh. When i tried to install it, i got an error that JAVA_HOME is not found. Java is …
Bright Varghese
  • 103
  • 1
  • 2
  • 9