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

Dont working #4

Open
Bupyc opened this issue Apr 27, 2015 · 5 comments
Open

Dont working #4

Bupyc opened this issue Apr 27, 2015 · 5 comments

Comments

@Bupyc
Copy link

Bupyc commented Apr 27, 2015

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getMethod0(Class.java:2856)
at java.lang.Class.getMethod(Class.java:1668)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.DecoderException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more

@kartikarora
Copy link

Getting the same error

@AlexCzar
Copy link

Launch the app as it is specified in the README, most probably you're forgetting to set the classpath.

@mnill
Copy link

mnill commented Aug 10, 2016

Just download all files from repo, not only .jar file

@mdumrauf
Copy link

The issue is clear in the stacktrace. Please read it:

Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.DecoderException

The class that was not found is in commons-codec-1.9.jar, which is not bundled together with intellij-decrypt.jar. Download or clone the whole repo and execute what the README says inside that folder:

~/projects/java/intellij-decrypt [master|✔] 
19:16 $ tree
.
├── intellijdecrypt.iml
├── intellij-decrypt.jar
├── lib
│   ├── commons-codec-1.9.jar
│   ├── commons-codec-1.9-javadoc.jar
│   └── LICENSE.txt
├── META-INF
│   └── MANIFEST.MF
├── README.md
└── src
    ├── com
    │   └── intellij
    │       └── ide
    │           └── passwordSafe
    │               └── impl
    │                   └── providers
    │                       └── EncryptionUtil.java
    └── org
        └── corneliudascalu
            └── intellijdecrypt
                └── Main.java

12 directories, 9 files
✔ ~/projects/java/intellij-decrypt [master|✔] 
19:16 $ java -classpath .:intellij-decrypt.jar:lib/commons-codec-1.9.jar org.corneliudascalu.intellijdecrypt.Main
-help Display this help message.
-p <password> Specify the password
-f <path> (Optional) specify the path to the security.xml file. Default to ~/.IdeaIC13/config/options/security.xml
✔ ~/projects/java/intellij-decrypt [master|✔] 
19:16 $

@MakerTim
Copy link

java -cp "intellij-decrypt.jar;lib/*" org.corneliudascalu.intellijdecrypt.Main -f ./security.xml -p

This worked for me on Windows

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

6 participants