Do I Need A Java Command Tool For My Mac
In this tutorial, we show you how to set $JAVA_HOME environment variable on latest or older Mac OSX. Mac OSX 10.5 or later In Mac OSX 10.5 or later, Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home, just export $JAVA_HOME in file ~/. Bash_profile or ~/.profile. $ vim.bash_profile export JAVA_HOME=$(/usr/libexec/java_home) $ source.bash_profile $ echo $JAVA_HOME /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home Why /usr/libexec/java_home? This java_home can return the Java version specified in Java Preferences for the current user. For examples, /usr/libexec/java_home -V Matching Java Virtual Machines (3): 1.7.0_05, x86_64: 'Java SE 7' /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home 1.6.0_41-b02-445, x86_64: 'Java SE 6' /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 1.6.0_41-b02-445, i386: 'Java SE 6' /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home This Mac OSX has three JDK installed.
The Elementary OS operating system is perfect for all types of Mac users. Best linux distro for mac. Those switching from the Mac should take notice. Don’t call it a clone though, because that’s just not true. Instead, Elementary OS takes the good ideas from Mac OS and implements them with a twist.
Even after upgrading to the latest version of Java, while running some applications on macOS Sierra (10.12), El Capitan (OS X 10.11), or Yosemite (OS X 10.10), users see a dialog box prompting to download Java. JDK (Java Development Kit), which includes JRE plus the development tools (such as compiler and debugger), is need for writing (developing) as well as running Java programs. In other words, JRE is a subset of JDK.
##return top Java version $ /usr/libexec/java_home /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home ## I want Java version 1.6 $ /usr/libexec/java_home -v 1.6 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 2. Older Mac OSX For older Mac OSX, the /usr/libexec/java_home doesn’t exists, so, you should set JAVA_HOME to the fixed path: $ vim.bash_profile export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home $ source.bash_profile $ echo $JAVA_HOME /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home References • •.
So, you downloaded the Java JRE and now something needs the JDK. You obviously want the JRE for some reason so in trying to find the request for the JDK. With the JDK message prompt showing use the command I mentioned above in a terminal window ps aux grep java This shows all the processes running and filters for the word 'java'.
Maybe it will show you where the request is coming from. Another option is to remove the java JRE and see if it goes away then.
Why did you download the JRE? If removing it solves the message problem maybe you can find another solution/app that does not need JRE. To remove Java. What is the best laptop for college students.