20-CS-5153 Network Security Spring 2017
Eclipse Headache Remedies

Secret Key, Public Key, Hash Algorithms, IPSec, Kerberos, Authentication, more

 

  • Problem: You code was fine, you made a change, now there are errors to the effect that you need to boost your minimum API.
    Solution: Left click on the project in the workspace navigator (on the left) then right click to bring down a menu. Move the mouse over "Android Tools" to bring up another menu. Select "Clear Lint Markers" in that menu. Then build (if not done automatically) under "Project"

  • Problem: Eclipse complains that your build library has too old an API: it says something to the effect that your code needs 5 or 6 but you only are able to use 1.3 or something like that.
    Solution: Left click on the project in the workspace navigator (on the left) then right click to bring down a menu. Click on "Properties" near the bottom of the menu. In the window that appears, click on "Java Compiler". You probably see something like this:

    Those 1.3s should be 1.6 or 1.7s. Click on the "Enable project specific settings" and then select 1.6 or higher from each of the menus on the right that shows 1.3. Click on "Enable project specific settings" and then "OK".

  • Problem: Eclipse claims that it cannot figure out what your build path is.
    Solution: Left click on the project in the workspace navigator (on the left) then right click to bring down a menu. Click on "Properties" near the bottom of the menu. In the window that appears, click on "Java Build Path". The rightmost tab shows the following:

    If not, check the boxes as shown and click on "OK". If this does not work, re-enter this screen, and click on the "Libraries" tab. Then click on the "Add Library..." button on the right. Choose some library (probably the JRE that is listed). Click on "Order and Export" tab and check to make sure it is being used (click on checkbox).