This is typical behavior if you compile code without an option -g.
In eclipse: right-click Project, select "Properties" from the context menu and "Java Compiler". Check if "project specific settings" is enabled.
If it is turned on, check if all the checkboxes in the bottom pane are selected, especially "Add variable attributes to create class files."
If this checkbox is enabled but not selected, check it (click "Apply"), if it is not enabled it is not selected, select "Configure workspace settings" and allow the missing functions globally (my advice).
- javac -g. (no -g) . ()