Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Importing files into Eclipse
Importing files into Eclipse [message #771296] Mon, 26 December 2011 22:41 Go to next message
Sal! Missing name is currently offline Sal! Missing name
Messages: 6
Registered: December 2011
Junior Member
Hi guys,

My friend sent me some code that he wanted me to look at. How do I import the folder into my workspace? (It contains the main folder, which has multiple subfolders before reaching the actual source files.)

I can bring it into my workspace, but when I run the main method from some of his methods, Eclipse complains that "Editor does not contain a main type." (My form of importing was moving the folder to where my workspace is contained and refreshing the project. I don't know how to tell Eclipse to use these files properly.)

As always, any help would be greatly appreciated!
Re: Importing files into Eclipse [message #771308 is a reply to message #771296] Mon, 26 December 2011 23:22 Go to previous message
David Wegener is currently offline David Wegener
Messages: 1341
Registered: July 2009
Senior Member
On 12/26/2011 04:41 PM, Sal! wrote:
> Hi guys,
>
> My friend sent me some code that he wanted me to look at. How do I
> import the folder into my workspace? (It contains the main folder, which
> has multiple subfolders before reaching the actual source files.)
>
> I can bring it into my workspace, but when I run the main method from
> some of his methods, Eclipse complains that "Editor does not contain a
> main type." (My form of importing was moving the folder to where my
> workspace is contained and refreshing the project. I don't know how to
> tell Eclipse to use these files properly.)
>
> As always, any help would be greatly appreciated!
You import files into Eclipse using the File->Import menu option. If
you are importing a file use the File System option. If you are
importing from an archive (zip) file, use the Archive File option.

The Editor does not contain a main type is an indication that your are
invoking the Run as ... Java Application from a file that doesn't have a
main method. You need to select the class file that has the main method
prior to invoking Run as... Java Application.
Previous Topic:No Internet connection
Next Topic:eclipse will not let me add a new Runtime Environment
Goto Forum:
  


Current Time: Wed Sep 24 00:37:12 GMT 2014

Powered by FUDForum. Page generated in 0.01650 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software