how to import java source into eclipse?
Sorry for probably too novice question
I have folder on file system that contains java sources, like that: C:\project\src\com\sun\blahblah...\Main.java
Main class is in the package com.sun.blahblah... and contain public static void main method, i.e. everything is well-formed :)
I want to import entire folder C:\pro开发者_StackOverflowject\src then I want to right-click Main.java and run it as Java application.
What kind of import should I select in Eclipse (from file-system or what)?
Note I don't want to create copy of my sources. They are under SVN already. I want to edit/run existent soures.
- Create a new Java project in Eclipse
- Select c:\project as the root folder of the project (create a project from existing source)
Create a new project in your Eclipse workspace (or use an existing project)
Rigth-click on the project
Select “Import…” / “General” / “File System”
Choose the directory, select the files and IMPORT
精彩评论