decompiling error

Help
ego
2004-08-18
2004-08-18
  • ego

    ego - 2004-08-18

    Hi all,

    I have encountered a problem while decompiling a class using the latest version,

    java jode.decompiler.Main --classpath $CLASSPATH  --dest /root/test/source ocf.pocket.action.AccountAction
    Jode (c) 1998-2001 Jochen Hoenicke <jochen@gnu.org>
    ocf.pocket.action.AccountAction
    Can't read class javax.servlet.http.HttpServletRequest, types may be incorrect.
    (java.io.FileNotFoundException: javax/servlet/http/HttpServletRequest.class)
    java.io.FileNotFoundException: javax/servlet/http/HttpServletRequest.class
            at jode.bytecode.SearchPath.getFile(SearchPath.java:451)
            at jode.bytecode.ClassInfo.loadInfo(ClassInfo.java:622)
            at jode.bytecode.ClassInfo.getModifiers(ClassInfo.java:756)
            at jode.bytecode.ClassInfo.isInterface(ClassInfo.java:761)
            at jode.type.ClassInterfacesType.<init>(ClassInterfacesType.java:62)
            at jode.type.Type.tClass(Type.java:230)
            at jode.type.Type.tClass(Type.java:213)
            at jode.type.Type.tType(Type.java:198)
            at jode.type.MethodType.<init>(MethodType.java:55)
            at jode.type.Type.tMethod(Type.java:270)
            at jode.decompiler.MethodAnalyzer.<init>(MethodAnalyzer.java:206)
            at jode.decompiler.ClassAnalyzer.initialize(ClassAnalyzer.java:237)
            at jode.decompiler.ClassAnalyzer.dumpJavaFile(ClassAnalyzer.java:620)
            at jode.decompiler.ClassAnalyzer.dumpJavaFile(ClassAnalyzer.java:613)
            at jode.decompiler.Main.decompileClass(Main.java:188)
            at jode.decompiler.Main.decompile(Main.java:403)
            at jode.decompiler.Main.main(Main.java:214)

    Do you have any ideas?Many thanks!

    ego

     
    • Chad McHenry

      Chad McHenry - 2004-08-18

      The problem is with the $CLASSPATH. Jode does not use the same separator between classpath elements as java, jode uses ',' where as java uses either ';' or ':' depending on platform.

      Make sure that every class which is used by the program you are decompiling (yes, you have to include $JAVA_HOME/jre/lib/rt.jar) are listed on the --classpath argument to Main.

      ...Chad

       
      • Martín Ferrari

        Martín Ferrari - 2004-08-18

        I would add that the class missing should be in the servlets jar

         

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks