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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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
Ok,
I will use a different error handler.
Thanks for the help
Thanks for the help, everything works fine now.
Greetings
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
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
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.