Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot open ddms.bat on android sdk because Java is not in my path

843789Jul 30 2010 — edited Jul 31 2010
I'm trying to open the ddms.bat (Dalvik Debug Monitor) but it won't let me because Java is not in my path.
Some things you should know: 1. I barely know what I'm talking about so please walk me through any advice you give me, I'm brand new to all of this. 2. I'm only trying to get ddms.bat to open because I want to take android screenshots without rooting my Nexus One. 3. I'm using a laptop PC with Windows 7 64 bit. 4. Following directions from some site, I moved the entire Java file from C:\Program Files to C:\Program Files (x86)
I've downloaded jre, jdk, and eclipse. For some reason eclipse wont open, its giving me some error about could not open C:\Program Files\Java\jre\lib\amd64\jvm.cfg

Using a website that I googled, I was able to put C:\Program Files (x86)\Java\jre1.6.0_21\jre\bin into the PATH but I don't know if I did the user variable correctly because the website told me to enter "classpath" as the variable and "." as the value.

Main Questions:
1. How do I put Java in my path?
2. How can I get the Eclipse application to open?
3. Should I move Java back to C:\Progam Files rather than keeping it C:\Progam Files (x86)
4. In order to get ddms.bat to open do I need jre, jdk, and eclipse or can I do with only one or two of them? And if so which ones do I need?

EDIT: I've moved the Java folder back to C:\Program Files and then tried to open ddms.bat and now cmd is giving the error that java.lang.UnsatisfiedError: Cannot load 32-bit SWT libraries on 64 bit JVM

What does that mean, and how can I fix it?
Also I've managed to get eclipse to open.

EDIT2: Got it to work somehow, that was really complicated but I'm just happy I got it. Heres the imgur link : imgur.com/ucBpY.png
Edited by: TaeKwonDonkey on Jul 30, 2010 9:04 PM

Edited by: TaeKwonDonkey on Jul 30, 2010 9:42 PM

Edited by: TaeKwonDonkey on Jul 30, 2010 9:43 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2010
Added on Jul 30 2010
1 comment
622 views