Comments (6)
It wasn't able to autodetect the standard library, so you'll need to pass
-path (your location of rt.jar)
for example -path "C:\Program Files (x86)\Java\jre7\lib\rt.jar"
You'll also need to pass the locations of any other libraries that the target references.
from krakatau.
When I run the following
~/Downloads/Krakatau-master/decompile.py -path "/home/maurice/jdk1.8.0_65/jre/lib/rt.jar" ./path/to/my/classes/
I still get the "Unable to find the standard library" error. Do I have the syntax wrong somewhere? I assume if it were actually a different library missing at this point, it wouldn't still say "the standard library", right?
Same when I run
~/Downloads/Krakatau-master/decompile.py -path="/home/maurice/jdk1.8.0_65/jre/" ./path/to/my/classes/
and a few other variations.
from krakatau.
Ok. I noticed the readme says "Note that the decompiler does not currently support Java 8[...]" so I installed 7 via apt, in the standard location, but am still getting the same error.
from krakatau.
Which class did it say wasn't found? It's probably needs another library.
Each time it says a class is missing, just add the jar with that class to
the path.
On Thu, Jan 21, 2016 at 2:28 PM, Maurice Ferguson [email protected]
wrote:
Ok. I noticed the readme says "Note that the decompiler does not currently
support Java 8[...]" so I installed 7 via apt, in the standard location,
but am still getting the same error.—
Reply to this email directly or view it on GitHub
#37 (comment)
.
from krakatau.
Hi,
I have a .jar. I wish to deobfuscate it and run it in eclipse. Krakatau seems very promising for this. While running it I am also getting the same message on my console. I run the command as following:
C:\Python27> .\python.exe <pathTo\decompile.py> -path "C:\Program Files\Java\jr
1.8.0_144\lib\rt.jar" -out -r -skip
Message on Powershell is as following:
Krakatau Copyright (C) 2012-17 Robert Grosse
This program is provided as open source under the GNU General Public License.
See LICENSE.TXT for more details.
Attempting to automatically locate the standard library...
Unable to find the standard library
0 extra classes loaded
Also, as you can see it does not tell me which are the standard libraries it needs. I am unable to figure out what is going wrong. Kindly help me here.
Note: I would also like to know how did you figure out rt.jar was to be included in the path? (from the first question asked here by IvoPereira)
from krakatau.
If there is a class missing, and you don't pass -skip, it will tell you the name of the class. You can usually figure out which dependency you need by googling the name of the class. I agree that it's a terrible system (I'm annoyed by it as much as you), but I'm not sure how to improve it, as redesigning Krakatau to not require class hierarchy information is a nonstarter.
from krakatau.
Related Issues (20)
- Re-assembled class fails to load (java/lang/ClassFormatError) HOT 11
- Assemble resource files HOT 2
- Decompilation error: AttributeError: 'NoneType' object has no attribute 'type' HOT 4
- try-catch class name causing UnicodeEncodeError: 'ascii' codec can't encode character u'\u200b' in position 0: ordinal not in range(128) HOT 2
- error Traceback (most recent call last) HOT 1
- illegal class/method/package names or modifiers HOT 2
- Interest in Krakatau 2? HOT 85
- bytecode peephole optimization non-looping-loops HOT 6
- Krakatau does not generate local variables info HOT 5
- Missing undocumented opcodes. HOT 3
- Cannot reassemble HOT 4
- is there any grammar book/doc for krak2? HOT 2
- When executing the command, an error "krak2 dis --out temp" HOT 2
- Fields without access flags have an extra space in the disassembly result.
- v2 seems not to have an option to assemble multiple classes into a single .jar HOT 7
- RuntimeError: maximum recursion depth exceeded while calling a Python object HOT 1
- crash with useless trycatches HOT 3
- Assemble .j files in Directory HOT 3
- 'rU' mode generate a backtrace in python 3.11+ HOT 3
- Issue with building "cargo build --release" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from krakatau.