java-home

Problems setting the JAVA_HOME variable

筅森魡賤 提交于 2021-02-08 05:19:11
问题 So I just downloaded Android Studio, and am trying to set the JAVA_HOME variable so I can run it. I'm using windows 8 and have followed all the instructions I've been able to find to no avail... went to advanced system settings > environment variables and then set the JAVA_HOME variable with the value containing my path to jre7. I've double checked the path a million times, I don't see anything wrong with it(C:\Program Files (x86)\Java\jre7). I know the variable name is right, and I know that

Can't run Apache james on mac Sierra

狂风中的少年 提交于 2021-02-05 10:41:30
问题 I'm using Apache James as email server for development purpose on mac Sierra - v 10.12.3 When I try to start/run it as super user sudo ./run.sh it I get the following error: ERROR: JAVA_HOME not found in your environment. Please, set the JAVA_HOME variable in your environment to match the location of the Java Virtual Machine you want to use. When I try to run it without sudo, I get the following: Using PHOENIX_HOME: /Users/myUserName/Dev/james-2.3.2.1 Using PHOENIX_TMPDIR: /Users/myUserName

CodenameOne :“Path to javac not found” error

心不动则不痛 提交于 2021-01-29 10:38:51
问题 I start working with CodenameOne tool for multiplatform mobile dev. When I created "hello world" app and tried to build an .apk android file, I received [echo] Error! Path to Javac not found! [echo] Make sure the JAVA_HOME enviroment variable is pointing to the JDK [echo] or define javac path in build.xml manually! I added JRE reference to the project, but this didn't solve the issue. How can I solve it? 回答1: Codename One needs to use the actual javac compiler and not ADT since some of our

VS code: JDK 13 not working in WSL ubuntu

萝らか妹 提交于 2021-01-29 03:11:38
问题 For some reason whenever I try running VS code within the WSL it says that "The JAVA_HOME environment variable (/mnt/c/Program Files/jdk-13.0.1) does not point to a JDK." When I simply run VS code normally(not in WSL) it works fine and there are no issues. If anyone could help it would be greatly appreciated, Thanks 来源: https://stackoverflow.com/questions/58739440/vs-code-jdk-13-not-working-in-wsl-ubuntu

VS code: JDK 13 not working in WSL ubuntu

邮差的信 提交于 2021-01-29 03:07:26
问题 For some reason whenever I try running VS code within the WSL it says that "The JAVA_HOME environment variable (/mnt/c/Program Files/jdk-13.0.1) does not point to a JDK." When I simply run VS code normally(not in WSL) it works fine and there are no issues. If anyone could help it would be greatly appreciated, Thanks 来源: https://stackoverflow.com/questions/58739440/vs-code-jdk-13-not-working-in-wsl-ubuntu

Hadoop on Windows - “Error JAVA_HOME is incorrectly set.”

你说的曾经没有我的故事 提交于 2021-01-21 07:11:07
问题 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 get the following error message: Error: JAVA_HOME is incorrectly set. Please update C:...\hadoop-2.7.1\conf\hadoop-env.cmd Inside hadoop-env.cmd , I have the line: set JAVA_HOME=%JAVA_HOME% When I type echo %JAVA_HOME% at the command line I get: C:\Java\jdk1.0.8_51 Even if I change the line in hadoop

Wrong JAVA_HOME after upgrade to macOS Big Sur v11.0.1

你离开我真会死。 提交于 2021-01-15 02:42:08
问题 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, my JAVA_HOME setting stopped working, always reporting the same java version: % /usr/libexec/java_home -V Matching Java Virtual Machines (5): 11.0.8 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 11" /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home 1.8.162.12 (x86_64) "Oracle

Wrong JAVA_HOME after upgrade to macOS Big Sur v11.0.1

烂漫一生 提交于 2021-01-15 02:37:17
问题 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, my JAVA_HOME setting stopped working, always reporting the same java version: % /usr/libexec/java_home -V Matching Java Virtual Machines (5): 11.0.8 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 11" /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home 1.8.162.12 (x86_64) "Oracle

Wrong JAVA_HOME after upgrade to macOS Big Sur v11.0.1

感情迁移 提交于 2021-01-15 02:37:13
问题 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, my JAVA_HOME setting stopped working, always reporting the same java version: % /usr/libexec/java_home -V Matching Java Virtual Machines (5): 11.0.8 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 11" /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home 1.8.162.12 (x86_64) "Oracle

How to set JAVA_HOME environment variable on macOS?

。_饼干妹妹 提交于 2020-12-29 12:15:07
问题 According to this mobilefirst tutorial, it mentioned: You must have the JAVA_HOME environment variable set to your JDK directory. For example: Mac OSX: /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home I've added this 2 lines in .bash_profile: export JAVA_HOME=`/usr/libexec/java_home -v 1.8` export PATH=$PATH:$JAVA_HOME/Contents/Commands Is this correct? Thanks. 回答1: in .bash_profile: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.xx/Contents/Home 回答2: Adding the