Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to import java source into eclipse?

Tags:

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:\project\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.

like image 950
Oleg Vazhnev Avatar asked Jun 06 '11 20:06

Oleg Vazhnev


1 Answers

  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)
like image 200
Abdullah Jibaly Avatar answered Oct 08 '22 04:10

Abdullah Jibaly