java-home Questions

14

Solved

This is my Java environment: ~: java -version java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0....
Larrylars asked 31/10, 2018 at 19:22

23

I am trying to set JAVA_HOME by entering export JAVA_HOME=/Library/Java/Home at terminal. It sets the JAVA_HOME for current session. How can I set it permanently?
Atrabilious asked 5/2, 2013 at 8:5

16

I have intellij-idea installed. Although I have set JAVA_HOME environment variable referring to "C:\Program Files\Java\jdk1.8.0_45" but when I try to run it, I end up with the following error: fai...
Leroy asked 23/8, 2017 at 18:5

12

Solved

I tried to open Android Device Monitor and the Studio showed me this message =-O : It surprised me, because how have I been able to develop Android apps if I didn't have any Java installed?! Actu...
Conscript asked 4/4, 2017 at 15:18

9

Solved

I am trying to install some software (Shibboleth) in Ubuntu 14.04. I already have Java 7 OpenJDK installed in /usr/lib/jvm/, and I have these lines in /usr/environment JAVA_HOME="/usr/lib/jvm/java...
Soekarno asked 23/1, 2016 at 17:40

19

Solved

I am new in developing native app using Salesforce SDK. I tried to create android project from command line using forcedroid tool but there is problem in setting environment variable named ANDROID_...
Monge asked 3/2, 2015 at 10:9

9

I've seen the numerous other posts on here regarding JAVA_HOME variables and I have tried them all. When I try and execute any gradle related tasks from the terminal I receive the following error:...
Eldwon asked 4/2, 2020 at 20:58

10

Solved

I'm trying to get Hadoop running 'Local Mode' on my Windows machine. I've been using this guide: http://hadoop.apache.org/docs/r1.2.1/single_node_setup.html When I run the command: bin/hadoop, I g...
Backstroke asked 24/7, 2015 at 23:0

8

My docker container requires JAVA_HOME to be set. I have added it to the Dockerfile as below ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/jre However, this is a hardcoding of the value. Is t...
Forbearance asked 27/4, 2017 at 10:34

8

Solved

I'm having a "JAVA_HOME is incorrectly set" error when launching Zookeeper on windows with zkServer.cmd while it is correctly set! When I issue %JAVA_HOME% I got C:\Program Files\Java\jdk1.7.0_45 w...

15

(Wasn't sure if this should go on SU... migration is certainly an option, but more programmers read questions here, so here goes). I am running Mac OS X 10.8.4, and I have Apple's JDK 1.6.0_51 ins...
Ebarta asked 26/7, 2013 at 15:36

5

I have 2 JAVA version on my Macbook. I want to change version from 14 to 11. I found 2 solutions on the internet but both are not working. My java -version result is openjdk version "14.0.1&qu...
Fresher asked 13/10, 2020 at 13:7

13

When I do echo %JAVA_HOME% it returns %JAVA_HOME% on windows 10 what did I do wrong?
Heighten asked 9/7, 2018 at 10:11

17

Solved

I installed java and set the path environment and when I run echo $JAVA_HOME in the terminal I get the following output: /usr/lib/jvm/java-7-oracle/jre/bin/java I Also installed apache-maven and c...
Muscovite asked 5/12, 2014 at 15:40

4

I just started to use jenv, I followed a blog post that was explaining how to use jenv and setup multiple java version on MacOSX. But the problem now I am running into is setting up the JAVA_HOME. ...
Cerebro asked 19/2, 2015 at 19:54

4

I have installed Oracle soa suite quickstart 12c (12.2.1.4.0) in windows 7. The java version i'm using is jdk1.8.0_241. After creating a standalone domain, when i tried to start the weblogic server...

10

Solved

I can't change the java version in macOS BigSur. i have the following versions : when I execute this command /usr/libexec/java_home -V i have the following versions : Matching Java Virtual Machine...
Haight asked 25/9, 2020 at 10:36

15

Solved

I installed openjdk-6-jdk on my ubuntu box using apt-get. In system info jenkins is telling me Java.Home is /usr/lib/jvm/java-6-openjdk/jre However when I specify that directory as JAVA_HOME in J...
Whiffet asked 18/11, 2011 at 16:26

8

Solved

I have Java 1.6 and Tomcat 5.5 installed on my system. But Tomcat 5.5 accesses Java 1.5 and hence as the outcome I get the error Bad version number in .class file while executing java code with JS...
Pommel asked 1/11, 2010 at 19:12

25

Solved

I am new to Linux system and there seem to be too many Java folders. java -version gives me: java version "1.7.0_55" OpenJDK Runtime Environment (rhel-2.4.7.1.el6_5-x86_64 u55-b13) OpenJDK 64-B...
Lotus asked 8/7, 2014 at 21:1

1

Solved

I am making iOS apps in Kotlin, which relies on having a Script Build Phase calling Gradle from XCode. With a JDK installed using SDKMAN, it does not work and produces this error: The operation cou...
Kursk asked 21/6, 2023 at 12:58

3

Solved

I am trying to build my Android app on the command line using Gradle commands. On executing the .gradlew build I am getting the error below: ERROR: JAVA_HOME is not set and no 'java' command could...
Signatory asked 21/9, 2021 at 8:42

11

Solved

In my setup on macOS I'm working with several JDKs, switching between them via /usr/libexec/java_home tool, similar to a method described in this SO answer After upgrading to macOS Big Sur v11.0.1,...
Gargle asked 19/11, 2020 at 18:24

8

Many java based application requires to set JAVA_HOME env variable. What's the purpose of this variable?
Glioma asked 24/2, 2011 at 8:18

8

Solved

I'm using a Windows .bat script and I set JAVA_HOME as C:/Program Files/Java/jdk1.6.0_32 when I do a java -version, it still shows the 1.3 How can I fix this? What am I doing wrong?
Calvillo asked 21/5, 2012 at 14:22

© 2022 - 2024 — McMap. All rights reserved.