Question: This is my .html body content:

```
<form name="login"> 
    <table border="0" cellpadding="2.0" cellspacing="2.0" align="left"> 
        <tr>
            <td>Username&nbsp;</td>
            <td>
                <input name="username" type="text" id="username" maxlength="15"></input>
            </td> 
        </tr> 
        <tr>
            <td>Password&nbsp;</td>
            <td>
                <input name="password" type="password" id="password" maxlength="10"></input>       
            </td> 
        </tr> 
        <tr>
            <td>&nbsp;</td> 
            <td>&nbsp;</td> 
        </tr> 
        <tr>
            <td>&nbsp;</td>
            <td>
                <strong>
                    <input name="Login" type="button" value="Submit" onclick="Vlogin()"></input>
                </strong>
            </td> 
        </tr> 
    </table> 
</form>

```

...and javascript code:

```
function Vlogin()
{
    var user=document.login.username;
    var pass=document.login.password;
    if (user.value=="account1" && pass.value=="backup1") 
    { 
        window.location= "index.jsp";
    }
    else
        alert("Invalid username or password");
        user.focus();
    }
}

```

Answer: 
I also faced the same problem for long, today only I found out the solution!

It's all lies in .project and .classpath files inside project's root directory. While trying to import any project into workspace, if your project does not gets listed, that means .project and/or .classpath files are either missing or corrupt. Usually these files are hidden, so you never know what is the issue.

For Ubuntu, follow steps below:

**step 1.** go to any project root directory in your workspace and press Ctrl+H to see hidden files.

**step 2.** copy .project and .classpath files from there and paste to the other project directory that you wanted to import.

**step 3.** Open the .project file and update name tag to project name.

```
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
 <name>Name of the project</name>
 <comment></comment>
 ....

```

**step 4.** close the folder and import the project, it will be definitely listed in the import wizard now!!
I'm facing the same issue, here what i have done.
- In Eclipse, Go to windows -> Preferences
- choose Android, set your Android SDK Location
 make sure you have at least one of the Android platform in the table.
- Apply and Ok.

done, I try import, and it's fine.
Hope it help.