Menu

Dependencies

Developers
romerog
2006-09-18
2012-10-08
  • romerog

    romerog - 2006-09-18

    Hello,

    I am trying to use Recoder to analyze a big program. This program uses a lot of jars.

    I need the source code of all the jars for analyze my program?

    There are los of:

    1: UnresolvedReferenceException
    2: UnresolvedReferenceException
    .

    *** 21: UnresolvedReferenceException

    Greetings

     
    • romerog

      romerog - 2006-09-18

      Hello,

      Thanks for the reply.

      I think i am going to ignore the errors. But is safe to do that?. What are the implications of ignore the errors?

      Greeings

       
      • Tobias Gutzmann

        Tobias Gutzmann - 2006-09-19

        Hi, it's not "safe" as Recoder will terminate execution either after a number of errors -default is 20-, or after finishing computing all references. So, best way is to use a different error handler.

        Tobias

         
    • romerog

      romerog - 2006-09-19

      Ok,

      I will use a different error handler.

      Thanks for the help

       
    • romerog

      romerog - 2006-10-02

      Thanks for the help, everything works fine now.

      Greetings

       
    • Tobias Gutzmann

      Tobias Gutzmann - 2006-09-18

      Hi,

      you either need to provide all the jars, or set a different error handler which ignores errors. See here: http://sourceforge.net/forum/forum.php?thread_id=1247697&forum_id=88905

      Best regards,

      Tobias

       
    • romerog

      romerog - 2006-09-22

      Hello,

      I have another question about jars. Why the programs having references to java classes (like Vector, Iterator, Collection) dont need the source code for this classes while programs having references to classes stored in jar files need the source code?.
      What is the difference?

      Greetings

       
      • Tobias Gutzmann

        Tobias Gutzmann - 2006-09-27

        Recoder automatically adds the rt.jar from your system classpath to its own classpath by default. If you want to add your own .jar files and/or the rt.jar of a different JRE, you can do so by calling

        crsc.getProjectSettings().setProperty(PropertyNames.INPUT_PATH, "file1.jar;file2.jar"). (on linux/unix, use : instead of ; or even better use File.pathSeparatorChar) where crsc is your service configuration.
        Note that this overwrites the default setting, i.e. you either have to specify the path to a rt.jar yourself, or you can call
        crsc.getProjectSettings().ensureSystemClassAreInPath() afterwards.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.