Reputation: 1315
My config is like this
Java Project1: IADTPrj
J2ee Project2: TestJ2EE references IADTPrj
Classpath entry <classpathentry kind="lib" path="/IDCT/bin"/>
I have in logger get some outputs like (SomeClass.java:30)
which I want to click to and go to its java file line no. 30. But eclipse is taking me to its .class file. To make matters worse i have a java decompiler installed which takes me to a look alike java code of SomeClass.class but again to the wrong line number.(line numbers are not preserved after decompiling. But it says which original java line number corresponds to current decompiled class!)
Now is this possible to define the search path for finding the hyperlinks, so that I can specify to search for java files first in the related project and then class files. So that I can edit SomeClass.java directly and re-deploy.
Upvotes: 1
Views: 1193
Reputation: 9514
This is because you did not attach any source (jar or folder) to that class.
There are many ways to attach a source jar or folder to a jar; an easy one is to right click on the jar in the package explorer and select properties.
If you have jadclipse, then if configured correctly, the real source code should take precedence over the decompiled code. Please be aware however, that if you change the configuration and test the same class, you will think that your configuration will not be taken into account because the decompiled source will still show up. I don't know of any other fix than restart eclipse (or test another class).
Upvotes: 1
Reputation: 2520
You can copy the stack trace to a Java Stack Trace console. In the Console, switch to a new Java Stack Trace console, paste the stack trace and it will be immediately clickable.
Upvotes: 0