• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help with Java paths

Well im trying to run DDMS so i can take a screenshot of my homescreen but i get the following error, even though my paths are what it says.

Can anyone help?


Screenshot : http://img295.imageshack.us/img295/4526/68183412.png

Try removing the java.exe off the path so that it's just "C:\Program Files\Java\jre6\bin\", and if there's nothing else in the path box previously, you shouldn't need the initial semi-colon. Keep the semi-colon if there is already stuff in the path directory though- it's just a separator between paths, but if there's nothing there already then of course you don't need the separator.
 
Upvote 0
It works for me.

@hotur - yes, don't add the executable add the path to the executable - or, as Xefan says, remove the java.exe part.

Also, is that the Java Runtime or the Java SDK? The Android SDK needs the Java SDK NOT the runtime (aka JRE).

If you try to force the JRE install to that directory, it will work for anything that requires the runtime (browsers, etc) but will not work for the Android SDK.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones