Coder Social home page Coder Social logo

Class not found? about krakatau HOT 6 CLOSED

storyyeller avatar storyyeller commented on June 7, 2024
Class not found?

from krakatau.

Comments (6)

Storyyeller avatar Storyyeller commented on June 7, 2024

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.

maurice-does-software avatar maurice-does-software commented on June 7, 2024

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.

maurice-does-software avatar maurice-does-software commented on June 7, 2024

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.

Storyyeller avatar Storyyeller commented on June 7, 2024

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.

PallaviKumariJha avatar PallaviKumariJha commented on June 7, 2024

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.

Storyyeller avatar Storyyeller commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.