Technical Tips and Troubleshooting
First, make sure you are in the Java perspective: in the top right corner of the window, click the Java Perspective toolbar button, which looks like .
6.031 systems use Touchstone to log you in, which allows you to either use a browser certificate (the most convenient method) or type your Kerberos password.
Try using your Kerberos password instead of a browser certificate. If the password works and the certificate does not, you probably need fresh certificates.
Are you using Windows with an antivirus checker turned on?
Sometimes antivirus interferes with SSL connections and causes
SSL_PROTOCOL_ERROR in every browser.
Try turning off your antivirus checking temporarily to see if it fixes the problem.
If so, then look for a way to add the web server to a whitelist in your antivirus configuration.
If all else fails, please post privately on Piazza and include the URL you tried to visit, whether you were able to log in with 2-factor authentication, and any error information.
When I see the name of a variable or method or class in Eclipse, how can I jump straight to its definition?
Command‑click (Mac) or
Control‑click (Windows/Linux) on the name, and Eclipse will jump to its definition.
Right-clicking and choosing Open Declaration does the same thing.
Navigate → Back, which might have the keyboard shortcut
Command [ or
Navigate → Open Resource brings up a dialog for quickly searching for and jumping to a file, which is a resource in Eclipse terminology.
Its keyboard shortcut is
Type the first part of the name, then use
Control‑Space to see possible completions.
How can I generate a method stub (method signature and empty body) for an interface or superclass method?
Put your cursor where you would create the method, and use
Control‑Space to see a list of methods you might override or implement.
Use Source → Format to clean up your act.
First, make tab characters visible using Window → Editor → Show Whitespace Characters.
The editor should now display every space as
· and every tab as
After you have set up Eclipse using the 6.031 configuration, Source → Format will change any tabs you have lying around into spaces. You can right-click the package to de-tab all of your classes at once.
Use Source → Toggle Comment to quickly toggle on or off some lines of code.
The keyboard shortcut is
Command / or
Use Source → Organize Imports to automatically add and organize Java import statements.
Just start using a new class, Organize Imports, and you’re good to go.
The keyboard shortcut is