flare-vm icon indicating copy to clipboard operation
flare-vm copied to clipboard

Bytecode Viewer fails to open apk

Open Ana06 opened this issue 4 years ago • 0 comments

I get an error when trying to open an .apk in Bytecode Viewer:

Bytecode Viewer Version: 2.9.22, Preview Copy: false, Fat Jar: true, OS: Windows 7, Java: 1.8.0_251

java.io.FileNotFoundException: C:\Users\user\.Bytecode-Viewer\bcv_temp\NVDnkKznBGOfzfRzaoZiLCKoE.jar (The system cannot find the file specified)
     at java.io.FileInputStream.open0(Native Method)
     at java.io.FileInputStream.open(Unknown Source)
     at java.io.FileInputStream.<init>(Unknown Source)
     at the.bytecode.club.bytecodeviewer.util.JarUtils.loadClasses(JarUtils.java:168)
     at the.bytecode.club.bytecodeviewer.BytecodeViewer$8.run(BytecodeViewer.java:961)

The solution seems to be to run Bytecode Viewer as admin (See details in https://github.com/Konloch/bytecode-viewer/issues/227#issuecomment-633886725). For example by executing in a cmd opened as administrator the following line:

java -jar C:\ProgramData\chocolatey\lib\bytecode-viewer.flare\tools\Bytecode-Viewer-2.9.22.jar

I think that making it the default to run Bytecode Viewer as admin in FlareVM would avoid that other people run into the same issue.

Ana06 avatar May 26 '20 12:05 Ana06