Unable to find jar in the system path

4,024 views
Skip to first unread message

Stephen Wokes

unread,
Sep 26, 2016, 6:54:48 AM9/26/16
to Google Mobile Ads SDK Developers
I've created a game in unity, and now integrating the google mobile ads SDK to set up ads in my game.

However, every time I try to run the game in editor I get the following pop up:

[Just in case the picture is not visiable, it reads "Unable to find jar in the system path. This tool is required to process Play Services dependencies.  Either set JAVA_HOME or add jar to the PATH variable to resolve this error."]

I've successfully built and published my Android game, I have JAVA on my machine.  So searched for the locations of jar.exe and the added this to the PATH variable in my environment variables settings.  However the problem persists - I still get the error message.  I even tried creating a new environment variable called JAVA_HOME and puttin gin the location of jar.exe here, but it still doesn't work.  

Am I doing something stupid?  Does anyone else get this message?  Should I just try to ignore it?  I haven't tried building the app in unity, but I'm guessing it won't work.

Please help

Thanks

Stephen

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Sep 26, 2016, 10:25:59 AM9/26/16
to Google Mobile Ads SDK Developers
Hi Stephen,

Can you open Unity > Preferences > External Tools and make sure that the JDK is pointing to the correct path? I'm going to assume that you have multiple Java paths in your system. Simply make sure that the Unity JDK path is the correct one and also go through Oracle's documentation on this.

Thanks,
Arjun Busani
Mobile Ads SDK Team

Stephen Wokes

unread,
Sep 27, 2016, 5:02:09 AM9/27/16
to Google Mobile Ads SDK Developers
Hi Arjun

So its pointing to C:\Program Files\Java\jdk1.7.0_79\, which is the location of my JDK.  Do I need a more up-to-date version of the JDK?

Dont think I've got multiple java paths on my computer.

I'll try reading through oracles documentation and see if it resolves the problem.

It's funny how it's never complained about this before.  But then maybe the google ads kit is using the JDK, and maybe I didn't need it before (?).

Anyway, thanks for your response, I'll let you know if I resolve the issue.

Stephen

Stephen Wokes

unread,
Sep 27, 2016, 5:11:05 AM9/27/16
to Google Mobile Ads SDK Developers
Ah - just solved it.  I'm using windows 10 and it was to do with my system environment variables.  The JAVA_HOME variable was pointing to a sub folder of the JDK location, rather than the actual JDK folder itself.  Once I changed this, unity stopped complaining!  Hooray!

Sorry for troubling you.

Stephen

Agung Malaya

unread,
Oct 21, 2016, 12:14:13 PM10/21/16
to Google Mobile Ads SDK Developers
Hello, I've got same error at my project. How you resolve it?
At my system environment variables there is no JAVA_HOME. Should I create it manual? Or it already exists before?
I have try to create JAVA_HOME manual and pointing value to C:\Program Files\Java\jdk1.8.0_101\ and at External Tools Unity I have pointing JDK path to C:\Program Files\Java\jdk1.8.0_101\ , but it still doesn't work. 

Please help
Thanks,
Agung

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Oct 21, 2016, 1:09:53 PM10/21/16
to Google Mobile Ads SDK Developers
Hi Agung,

This is related to JDK setup and you would find all of the relevant guidelines directly from OracleHere is one that might help you with your issue.

Thanks,
Arjun Busani
Mobile Ads SDK Team

shsa...@colorado.edu

unread,
Dec 1, 2016, 11:01:55 PM12/1/16
to Google Mobile Ads SDK Developers
Hey Stephen,

I am facing the same issue, I have added the JAVA_HOME in the environment variables and even the path is correct, can you please help me ?

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Dec 2, 2016, 11:23:28 AM12/2/16
to Google Mobile Ads SDK Developers
Hi there,

This is purely a JDK setup issue and I would suggest you to make sure that you are following Orcale's guidelines on how to install it and see that JAVA_HOME is pointing to the right path from your Terminal.

Thanks,
Arjun Busani
Mobile Ads SDK Team

YouTube Support

unread,
Jan 7, 2017, 12:48:25 PM1/7/17
to Google Mobile Ads SDK Developers

I did everything so as they say in the Java and all checked everywhere, but this error.

пятница, 2 декабря 2016 г., 19:23:28 UTC+3 пользователь Veer Arjun Busani(Mobile Ads SDK Team) написал:

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jan 9, 2017, 10:58:18 AM1/9/17
to Google Mobile Ads SDK Developers
Hi there,

Can you recheck whether you have properly set JAVA_HOME path form your environment variables from this article? I don't see that from your attached screenshot.

Thanks,
Arjun Busani
Mobile Ads SDK Team

Reply all
Reply to author
Forward
0 new messages