开发者

how to import java source into eclipse?

开发者 https://www.devze.com 2023-03-11 21:24 出处:网络
Sorry for probably too novice question I have folder on file system that contains java sources, like that:

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.


  1. Create a new Java project in Eclipse
  2. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消