Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access jarfile d #204

Open
qinjoshua opened this issue Dec 25, 2023 · 2 comments
Open

Unable to access jarfile d #204

qinjoshua opened this issue Dec 25, 2023 · 2 comments

Comments

@qinjoshua
Copy link

qinjoshua commented Dec 25, 2023

Describe the bug
I have just installed APKLab, and when I attempt to open an APK file, I get the error message "Unable to access jarfile d".

Nothing else has been done besides installing the extension and attempting to open the file. I had JDK 15 installed on my computer prior.

To Reproduce
Ctrl + Shift + P, go to APKLab: Open an APK, and select an APK file to open with default parameters

Expected behavior
The APK file should successfully open and be decompiled

Console Logs

--------------------------------------------------------------
Decoding sample.apk into c:\Workspace\sample
--------------------------------------------------------------
java -jar  d c:\Workspace\radiothermostat.apk -o c:\Workspace\sample --only-main-classes
Error: Unable to access jarfile d
Decoding process exited with code 1
Error: Initializing project dir as Git repository: ENOENT: no such file or directory, open 'c:\Workspace\sample\.gitignore'

System Information:

  • OS: Windows 10
  • VSCode Version: 1.64.2

Additional context
This is my first time using APKLab

@gcandrade10
Copy link

Up! ⬆️

Decoding kgb-messenger.apk into c:\Users\Germa\Downloads\kgb-messenger11

java -jar C:\Users\Germa.apklab\apktool_2.9.1.jar d c:\Users\Germa\Downloads\kgb-messenger.apk -o c:\Users\Germa\Downloads\kgb-messenger11 --only-main-classes
Error: spawn java ENOENT

I think your issue is because the command should be calling apktool_2.9.1.jar but looks like it's omiting that part 🤔

I have same Error: spawn java ENOENT but looks like this is related to windows

looking for that error I ended up here:

https://www.reddit.com/r/learnjavascript/comments/zyq40q/comment/j29zf2z/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

So annoying! Issue is that windows uses backslashes in the path while spawn uses forward slashes

but if I rerun the exact command on powershell it works 👽

I had same Error: spawn java ENOENT error when trying to rebuild the apk:

Rebuilding kgb-messenger.apk into kgb-messenger\dist

java -jar C:\Users\Germa.apklab\apktool_2.9.1.jar b c:\Users\Germa\Downloads\kgb-messenger --use-aapt2
Error: spawn java ENOENT

any ideas?

@Surendrajat
Copy link
Member

@qinjoshua APKLab downloads apktool, jadx etc. before opening the APK but seems like it failed for some reason for you. Make sure your internet connection is fine and try again.

@gcandrade10 seems like you don't have java installed or present in PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants