Konloch / bytecode-viewer

A Java 8+ Jar & Android APK Reverse Engineering Suite (Decompiler, Editor, Debugger & More)
https://bytecodeviewer.com
GNU General Public License v3.0
14.69k stars 1.15k forks source link

Bytecode_Viewer\bcv_temp\blah blah.jar not found #77

Closed XNepster closed 5 years ago

XNepster commented 9 years ago

I downloaded and test three different version of byteCode but giving the same error. What should i do know.

Konloch commented 9 years ago

What operating system are you on? Are you able to run BCV with a command prompt/terminal and paste the contents? Could you also provide the exact JRE you're using (java -version in terminal).

Lastly, try the 'fatjar' version located on the git, does it work with that version?

Cheers!

Konloch commented 9 years ago

Anyone else experienced this issue? If so could you please answer the above questions, cheers.

DarioI commented 9 years ago

I had the same error, tried with fatjar version and received the following again:

Bytecode Viewer Version: 2.9.8, Preview Copy: false, Fat Jar: true

java.io.FileNotFoundException: /Users/DarioIT/.Bytecode-Viewer/bcv_temp/aubhOhyFnPTKuqNEAyTpDrBFw.jar (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at the.bytecode.club.bytecodeviewer.JarUtils.loadClasses(JarUtils.java:83) at the.bytecode.club.bytecodeviewer.BytecodeViewer$6.run(BytecodeViewer.java:878) '

Running on OS X 10.10.4 and Java:

java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Konloch commented 9 years ago

Could you please tell me what you did to throw that exception?

DarioI commented 9 years ago

I open the Add... menu action, tried to load an apk and this happened. Tried several times, several times the same error.

Konloch commented 9 years ago

Could you please run this from your terminal as java -jar "bytecodeviewer 2.9.9.jar" and send everything printed out here?

Also, could you please go to your Settings> and tell me which APK Conversion you have selected, and if 'Decode APK Resources' is toggled.

Cheers!

android-kaizen commented 8 years ago

Same here when dropping an .apk. Say the file is missing On Windows 10

didlich commented 8 years ago

same problem

Bytecode Viewer Version: 2.9.8, Preview Copy: false, Fat Jar: false

dex2jar /home/xxxx.apk -> xxxxx-dex2jar.jar java.io.FileNotFoundException: /home/xxxx/.Bytecode-Viewer/bcv_temp/xPyaEQGmUzCuSGTYcWLpgDwnc.jar (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at the.bytecode.club.bytecodeviewer.JarUtils.loadClasses(JarUtils.java:83) at the.bytecode.club.bytecodeviewer.BytecodeViewer$6.run(BytecodeViewer.java:878)

Silur commented 8 years ago

anything new on this issue? I got the same error

StefaanSeys commented 8 years ago

can confirm this issue, got the same error

bmeike commented 8 years ago

Another example: OS X, 10.11.5 java version "1.8.0_91" Java(TM) SE Runtime Environment (build 1.8.0_91-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

bmeike>java -jar BytecodeViewer\ 2.9.8.jar 
https://the.bytecode.club - Created by @Konloch - Bytecode Viewer 2.9.8
Checking & Deleting foreign/outdated libraries
Loading libraries...
Loading library apktool_2.0.1_obf-2.jar
Succesfully loaded apktool_2.0.1_obf-2.jar
Loading library baksmali-2.0.3_obf.jar
Succesfully loaded baksmali-2.0.3_obf.jar
Loading library byteanalysis-1.0.jar
Succesfully loaded byteanalysis-1.0.jar
Loading library cfr_0_115.jar
Succesfully loaded cfr_0_115.jar
Loading library commons-codec-1.9.jar
Succesfully loaded commons-codec-1.9.jar
Loading library commons-compiler.jar
Succesfully loaded commons-compiler.jar
Loading library commons-io-2.4.jar
Succesfully loaded commons-io-2.4.jar
Loading library commons-lang3-3.3.2.jar
Succesfully loaded commons-lang3-3.3.2.jar
Loading library dex_obf.jar
Succesfully loaded dex_obf.jar
Loading library fernflower-2016.jar
Succesfully loaded fernflower-2016.jar
Loading library imgscalr-lib-4.2.jar
Succesfully loaded imgscalr-lib-4.2.jar
Loading library janino.jar
Succesfully loaded janino.jar
Loading library jar-rename-1.6.jar
Succesfully loaded jar-rename-1.6.jar
Loading library jasmin-p2.5.jar
Succesfully loaded jasmin-p2.5.jar
Loading library jd-gui-1.0.0-RC4.jar
Succesfully loaded jd-gui-1.0.0-RC4.jar
Loading library jgraphx.jar
Succesfully loaded jgraphx.jar
Loading library procyon-decompiler-0.5.30.jar
Succesfully loaded procyon-decompiler-0.5.30.jar
Loading library rsyntaxtextarea.jar
Succesfully loaded rsyntaxtextarea.jar
Loading library slf4j-api-1.7.18.jar
Succesfully loaded slf4j-api-1.7.18.jar
Loading library slf4j-nop-1.7.18.jar
Succesfully loaded slf4j-nop-1.7.18.jar
Loading library smali-2.0.3-obf-patched.jar
Succesfully loaded smali-2.0.3-obf-patched.jar

Drop classes.dex into UI window:

java.io.FileNotFoundException: /Users/bmeike/.Bytecode-Viewer/bcv_temp/hYjqieUPRdsEjxHDDyPjZumZl.jar (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at the.bytecode.club.bytecodeviewer.JarUtils.loadClasses(JarUtils.java:83)
    at the.bytecode.club.bytecodeviewer.BytecodeViewer$6.run(BytecodeViewer.java:899)

In my case, the directory /Users/bmeike/.Bytecode-Viewer/bcv_temp does exist, but is empty.

Flightkick commented 8 years ago

Same here, the .Bytecode-Viewer/bcv_temp directory doesn't get created. It's parent .Bytecode-Viewer also isn't created. Hence the jar file cannot be found.

stepanhack commented 8 years ago

Fixed after renaming the apk to "a.apk"... I haven't looked at the code at all but I assume it runs into problems when the filename of the apk has a space or certain special characters.

Example:

Filename = "Transit · offline timetables_v2.2.4_apkpure.com.apk" StackTrace

Bytecode Viewer Version: 2.9.8, Preview Copy: false, Fat Jar: false

java.io.FileNotFoundException: C:\Users\step\.Bytecode-Viewer\bcv_temp\BoiTjcWGHEhZrZGlNNYwOiNuu.jar (The system cannot find the file specified)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at the.bytecode.club.bytecodeviewer.JarUtils.loadClasses(JarUtils.java:83)
    at the.bytecode.club.bytecodeviewer.BytecodeViewer$6.run(BytecodeViewer.java:877)
Kishanjvaghela commented 8 years ago

Anyone get the solution?

stepanhack commented 8 years ago

@Kishanjvaghela Rename your apk file to a single letter like "a.apk" ... This fixed the problem for me

geocine commented 8 years ago

@stepanhack thanks, that worked :dancer:

magneticflux- commented 6 years ago

It seems to be an issue with special characters in the file name. Try making your filename match this regex: [A-z0-9 ]+

fritz-net commented 6 years ago

for me also underscores and points work [_.A-z0-9 ]+

bydylo commented 6 years ago

I'm also having some problems with BCV

bydylo commented 6 years ago

Bytecode Viewer Version: 2.9.8, Preview Copy: false, Fat Jar: true

java.lang.NullPointerException at the.bytecode.club.bytecodeviewer.gui.MainViewerGUI$19$1$2.run(MainViewerGUI.java:1239)

Konloch commented 5 years ago

I've done a couple tests and this should be fixed in the latest version, if it's not please create a new issue or E-Mail me. Thanks for all the reports and help guys.