While discussing another question I asked, @Aaron Digulla pointed out the following:
If you installed the Java SDK, there should be a "src.zip" file in the root directory of the Java installation. If it's missing, download Java again. Eclipse should find the source automatically and show it to you when you open the type JTable (or when you click on the line in the stack trace).
The file src.zip
is present for me, but I still can't access the source of JTable
like @Aaron said. What could be the problem? How can I solve this with Eclipse?
The "Unknown Source" worries me, though. it means your version of Java doesn't have debug symbols. Make sure that you a) use a SDK while developing, b) that your SDK contains debug symbols, c) don't tell the command java to strip debug symbols when it loads classes.
a) I'm using Eclipse, why shouldn't I being using SDK?
b) How do I know if my SDK contains debug symbols? And if it doesn't, how can I add them?
c) How can I check if Eclipse is telling java
to strip debug symbols?
Sorry for these banal questions, but I feel like I don't fully understand the Java development process.