Could not find artifact com.sun:tools:jar:1.8.0 at specified path /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/../lib/tools.jar

Let’s say you started your plugin on MacOs with atlas-run and got the following error:

The error says that file tools.jar was not found. What happened?

The problem is that your default Java Home is wrong. Most likely, you reference JRE instead of JDK.

To fix this problem first find all installed jdks with the following command:

/usr/libexec/java_home -V | grep jdk

Here is the output on my computer:

Choose the JDK you want to be by default (in my case /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home)

Now open the .bash_profile file in your /home folder and enter this line:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home

Save the file and run terminal again.

Atlas-run should work now.

If you have found a spelling error, please, notify us by selecting that text and pressing Ctrl+Enter.

Leave a Reply

%d bloggers like this:

Spelling error report

The following text will be sent to our editors: