Originally Posted by spouny_boy
[...] But here comes the drama. When I launch Run.bat, the Dos window pop up (as normal) but it said "Java was not found, you will not be able to sign apks or use apktool"
But Java is installed and up to date, maybe I have to make some settings I don't know.
I'm on Win 7 pro 64bits (official)
You need to make the programe "java.exe" executable from whereever you are on the machine. There are 2 options at your disposal:
1- you can EDIT the Run.bat, and change all the java.exe
2- you add the /bin/ folder to your $PATH variable (this will make all Java applications (jar.exe, servertool.exe, awt.dll, ...) executable at all times):
- Click "START";
- Right-click on "Computer" and select "Properties";
- Go to the "Advanced" tab;
- At the bottom of the window, click the "Environment Variables" button;
- In the top DataGrid, find the variable named "PATH" (if it's not there, create it);
- You'll want to add your JAVA path to the variable. If it's a newly created variable you simply need to put the path to /bin/ in here. If it's an existing variable then you want to add this path to the end of the current list. All list items are separated by ; (semicolon), so it could make things not work if you forget it.
- Click "OK" (Closes Variable dialog);
- Click "OK" (Closes Computer Properties dialog);
Now, for this to take effect, you need to reboot the windows explorer... Easiest way to do this is to LOG OFF
(A simple "Change User" will not work) and log back in. System variables are loaded when the Userspace is created.
PS: This technique can be used for anything. I use the PATH variable to manage my Android Development Toolkit (ADB, fastboot, etc) and my PSPSDK (psp-gcc, psp-pbp, etc), so I never need to fuss with pathes, and use my command-line DOS prompt in windows as if I was in linux (I can type "make" in windows to build without having to deal with the path).