File->new->java project,输入project name,点击finish。在创建好的project中,右击src,选择import,选择general下file system,点击next,然后选择你java文件所在目录,选择java文件,点击完成即可