I’m currently integrating some new classes into an existing application. I have a JDialog which, when clicked, throws a number of runtime exceptions.
I’m new to Java debugging – why would all of these Swing/AWT library functions be ‘unavailable’?
SO forbids me from posting images, so here’s a link to a capture of the eclipse debugger:
https://i.stack.imgur.com/P4IjO.png
Why would these methods be unavailable?
The “not available” indicates that the classes were compiled without debug information, i.e. using the
-g:noneswitch withjavac. Since those are Standard API classes, I suspect that your eclipse project is configured to use the JRE System Library from a JRE installation rather than a JDK. You can change that in the project properties (right click on project -> Properties -> Java Build Path -> Libraries); you may have to install a JDK first.