Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » The active editor can't find main type
The active editor can't find main type [message #233713] Fri, 23 April 2004 22:51 Go to next message
Eclipse UserFriend
Originally posted by: patrick_hj_chang.yahoo.com

Hello

I am new to Eclipse so the question may be domb.... Ok, I am trying to
install eclipse on a Linux machine (running redhat). And I finally got
the program to run. But, when I tried to test run a simple program
("HelloWorld"!!!), I got this "Launch Failed" message: "The active
editor does not contain a main type." The main method exists, but it
seems the editor does not reconize it. Does anyone has idea what's
going on here?
Thanks for any help.



Patrick
Re: The active editor can't find main type [message #234178 is a reply to message #233713] Sun, 25 April 2004 19:40 Go to previous message
Mohamed El Ayouty is currently offline Mohamed El AyoutyFriend
Messages: 7
Registered: July 2009
Junior Member
Patrick Chang wrote:

> Hello

> I am new to Eclipse so the question may be domb.... Ok, I am trying to
> install eclipse on a Linux machine (running redhat). And I finally got
> the program to run. But, when I tried to test run a simple program
> ("HelloWorld"!!!), I got this "Launch Failed" message: "The active
> editor does not contain a main type." The main method exists, but it
> seems the editor does not reconize it. Does anyone has idea what's
> going on here?
> Thanks for any help.

To run the java project, you have to have the editor with the class that
contains the static main function in focus to run it for the first time.
Later on just click the run button as it remembers where the main type is.

> Patrick
Previous Topic:Online Javadoc for 3.0M8?
Next Topic:Editor/Views loss of focus
Goto Forum:
  


Current Time: Fri Apr 26 11:10:03 GMT 2024

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

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

Back to the top