Apk manager error on Windows 7 ( java not found)??? - Android Q&A, Help & Troubleshooting

when I install apkmanager and run the 'script' its says java not found you will not be able to use apktool ??
My windows is 64 bit plz help anyone ...if you know how to fix it ??

Install java?
Sent from my SK17i using xda premium

You need to add Java to your system path.
Sent from Arkham

I did have the same problem.
Try install the x64 version, works for me

Firstly, make sure that you download the x64 version of java and uninstall all other versions of java. After installing java if it still doesn't work, the you have to set an environment variable in my computer with the name JAVA_HOME and value as the path of your installation location of java.

Related

Screenshot

Hello
I want to do a scrrenshot of my wildfire (no root)
I have instaled the SDK android to try with the DDMS, but it don't work(Not find java)
PC Windows 7 64bits
Java SDK SE
Android SDK Version 8
Any suggestion..
Thanks.
try screenshot app from market
screenshot
I had tried screenhot, buy I need to be root.
I have used Z4root with root temporaly but Is says that no root...
Did u add tools path to your environment variables?
Sent from my HTC Wildfire using XDA App
Solution
finally ddms says that not found java...
So that I have win 7 (64) I have copy the directory java from c:\program files (86) to c:\program files
And now I can make screenshots.
Strange, i have windows 7 64bit, and java installed to Program Files (x86) and it worked fine as always.
Shootme works like a charm for meh need root though
www.youtube.com/mrpigelin

[Q] Build java files for android platform

Hi,
I'm new to android developement. To make it short. Our project needs to be ported for android. It has some java and C code. We run this java as applet using Oracle JRE in linux systems and using firefox browser.
Now it needs to be done on android and browser. Android doesnot support JRE. Hence i downloaded eclipse, ADT plugin. Added my java files, external JRE library and compiled it. Got the apk and classes.dex.
Now my question here is i'm not able to proceed further. How to execute the same as in JRE before. I'm totally confused. Running the apk in emulator/android mobile only runs the activity.java code. Say i'm printing hello world in that(i dont need that but still i have wrote it as my first program).
I dont know how to execute my other java files(which will run as java applet before in linux systems). I'm stuck here since i have not worked on android.
This would be the first step in to my porting.
Also the easy solution would be to run the applet.jar i have directly on android similar to linux jre. Is it possible.?
Any sort of help would be great. Thanks.

[Q] Android SDK manager not starting on Windows 8

Hello,
I can't get Android SDK manager to run on Windows 8 x64. Every time I run the executable a command prompt window flashes briefly and then nothing happens. I have tried installing both 32 and 64 bit version of JDK 1.6 and running SDK manager with admin permissions and in compatibility mode.
Any help would be appreciated
kevdliu said:
Hello,
I can't get Android SDK manager to run on Windows 8 x64. Every time I run the executable a command prompt window flashes briefly and then nothing happens. I have tried installing both 32 and 64 bit version of JDK 1.6 and running SDK manager with admin permissions and in compatibility mode.
Any help would be appreciated
Click to expand...
Click to collapse
It runs fine for me on Windows 8 Pro x64. The command propt window does flash, but the manager comes up soon after. I have JDK 1.7 though.
Theonew said:
It runs fine for me on Windows 8 Pro x64. The command propt window does flash, but the manager comes up soon after. I have JDK 1.7 though.
Click to expand...
Click to collapse
Thanks so much for the info I tried again with JDK 1.7 and it works now
kevdliu said:
Hello,
I can't get Android SDK manager to run on Windows 8 x64. Every time I run the executable a command prompt window flashes briefly and then nothing happens. I have tried installing both 32 and 64 bit version of JDK 1.6 and running SDK manager with admin permissions and in compatibility mode.
Any help would be appreciated
Click to expand...
Click to collapse
The same was in Windows7 64-bit for some SDK version (dont remember version number).
It was solved by switching off some windows security checking. May be this is not best solution, but works.
Got a fix
I was having this problem too. It's caused by the PATH variables to java.exe being set incorrectly. You can modify the environment to have java_exe pointing to wherever it is C:\Windows\System32\java.exe for me or modify android.bat in tools to change set java_exe= call lib\find_java.bat if not defined java_exe goto :EOF
to this: set java_exe="D:\Program Files\Java\jdk1.7.0_07\bin\java.exe" where the path is the path to your java exe
you can then run android.bat and it works. The reason (re)installing java works is because it adds the path variables for you. They must have gotten changed/moved when I upgraded to windows 8
I'm having the same issue. Installed JDK 1.7 but still the same issue.
I have a fresh Install of W8 and am just now trying to install JDK and SDK.
.
I also cannot launch SDK Manager
o0rebelious0o said:
I was having this problem too. It's caused by the PATH variables to java.exe being set incorrectly. You can modify the environment to have java_exe pointing to wherever it is C:\Windows\System32\java.exe for me or modify android.bat in tools to change set java_exe= call lib\find_java.bat if not defined java_exe goto :EOF
to this: set java_exe="D:\Program Files\Java\jdk1.7.0_07\bin\java.exe" where the path is the path to your java exe
you can then run android.bat and it works. The reason (re)installing java works is because it adds the path variables for you. They must have gotten changed/moved when I upgraded to windows 8
Click to expand...
Click to collapse
I am having the identical problem. I try to launch SDK Manager and get a quick cmd flash and then nothing. I am on Win8 Pro with jdk 1.7.0_21.
I added c:\Windows\System32\java.exe to the path (correct on my system) but no obvious change in result. Then edited set java_exe in android.bat to "C:\Program Files\Java\jdk1.7.0_21\bin\java.exe" and ran the batch file, and still I just get a quick flash of the command window. My java sdk was just installed today prior to setting up the ADT Bundle for Windows. Eclipse loads with ADT, but the SDK Manager is still a no go. Thanks in advance for any ideas.
Solved my Windows 8 problem
Hi,
I have been having similar problems with Android SDK manager not starting in Windows 8. Tried altering Java paths and messing with Android.bat etc. etc. but am now convinced the problem is with the UAC of Windows 8. Why?
1) Originally installed Eclipse in a sub dir of Program Files and found that I could not edit any sub dir there (like Android.bat) because of User Access Controls (UAC)... got me thinking...
2) So re-installed Eclipse in a sub dir under my user, and bingo... SDK manager works fine now.
It is possible to disable all UAC in Win 8 Pro using secpol.msc, but I don't have Pro version and it's not in bog standard version... However, you can still edit the registry to give all apps admin privileges but seems a bit drastic to have to do this...
http://developer.android.com/sdk/installing/bundle.html
Install the SDK and Eclipse IDE
1.Unpack the ZIP file (named adt-bundle-<os_platform>.zip) and save it to an appropriate location, such as a "Development" directory in your home directory.
try c:\Development\
aleks3008 said:
http://developer.android.com/sdk/installing/bundle.html
Install the SDK and Eclipse IDE
1.Unpack the ZIP file (named adt-bundle-<os_platform>.zip) and save it to an appropriate location, such as a "Development" directory in your home directory.
try c:\Development\
Click to expand...
Click to collapse
This is what worked for me. Thanks!!!
I originally had it in User\Documents\
same problem
I am having same problem like you buddy.help would be much appreciated.
Same here
Yeah I've reinstalled everything as described here, and I am still unable to get it to launch. Just getting the brief flash of a CMD prompt.
Finally solved it!
I had the exact same problem. I have gone crazy trying to fix this for past 1 day. Finally solved it using this guide: http://www.dominantwire.com/2015/03/android-sdk-not-opening.html.
Had to do some tweaks in the android.bat file and re-specify the environment variable paths. The solution is pretty universal. Should work for you guys as well.

Run APKTOOL in ANDROID!!!

Tried it, i put aapt,apktool and apktool.jar in /system/bin...
But when typing apktool it says "no such file or directory"
How can i make it work??
bamsbamx said:
Tried it, i put aapt,apktool and apktool.jar in /system/bin...
But when typing apktool it says "no such file or directory"
How can i make it work??
Click to expand...
Click to collapse
I think you can't run it since Android is not using Java API, but Dalvik instead.
Source: http://en.wikipedia.org/wiki/Comparison_of_Java_and_Android_API
EDIT:
Also, try to find out more about this one: https://code.google.com/p/java-ide-droid/
Ramazor said:
I think you can't run it since Android is not using Java API, but Dalvik instead.
Source: http://en.wikipedia.org/wiki/Comparison_of_Java_and_Android_API
EDIT:
Also, try to find out more about this one: https://code.google.com/p/java-ide-droid/
Click to expand...
Click to collapse
Well, but if android is based in linux, we still be able to download and install the java JDK/JRE for arm devices, right?
If i am wrong, suppose that we run ubuntu inside android with ubuntu installer.... in that case it should work, because it could run java properly... i am right???
Else, could be apktool source modified to run in android???
Please, anyone reply, i am very interested in this
You can install OpenJDK on Ubuntu 13.04 small (download from http://sourceforge.net/projects/linuxonandroid/files/Ubuntu/)
I could launch Minecraft Launcher (only the launcher...). All the binaries must be compiled for ARM.
Here's an easy script pack for installing JDK to ARM Linux that I wrote
https://github.com/S0AndS0/Debian-Kit-Mods
Check the readme for how to use and enjoy
Sent from my SPH-D700 using xda app-developers app

[Q] Trying to compile AOSPA : java 6 problem

Hi,
I'm following this tutorial http://forum.xda-developers.com/showthread.php?t=1863547 in order to be able to compile PA for my Nexus 4.
I get stuck at java 6 installation : as I'm using a Debian (jessie) as my daily OS, and trying to learn java, I already had it with eclipse and the command "java -version" showed me version 1.7 and openjdk 7.
So I anyway tried to purge java, this of course removed eclipse, and the next step in the tutorial explained how to install Oracle JDK. But I wanted to keep using OpenJDK so I just did a basic install of openjdk-6 with aptitude.
At this point "java -version" shows me 1.6, but... Installing Eclipse and its dependencies make java 1.7 and openjdk-7 come back...
There must be an easy way to solve this ?
Thanks!
PS : As you probably understood I'm using debian daily but I'm not yet a linux geek ^^

Categories

Resources