Apktool icon indicating copy to clipboard operation
Apktool copied to clipboard

[BUG] apktool.bat %java_exe% error

Open InersIn opened this issue 3 years ago • 2 comments

Information

  1. Apktool Version (v2.6.1) -
  2. Operating System (Windows 11) -
  3. APK From? (Other) -

Steps to Reproduce

After following installation step from the official and try to run apktool.bat, it will say

'""C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Solving

Find this syntax set java_exe="%JAVA_HOME%\bin\java.exe" and remove double quote set java_exe=%JAVA_HOME%\bin\java.exe

InersIn avatar Aug 07 '22 08:08 InersIn

Hmm. Worked on my side, will have to dig into it in more details.

iBotPeaches avatar Aug 07 '22 10:08 iBotPeaches

I can reproduce this issue as well! The given solution worked.

yousef-essa avatar Aug 09 '22 02:08 yousef-essa

Was resolved here - https://github.com/iBotPeaches/Apktool/commit/63a8d092d891f0c261b3355a360ab4c1ad8790c4

iBotPeaches avatar Sep 20 '22 11:09 iBotPeaches