Bug 36737 - unable to find main class in .aj file
Summary: unable to find main class in .aj file
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P5 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-21 20:34 EDT by Wes Isberg CLA
Modified: 2009-09-24 18:29 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wes Isberg CLA 2003-04-21 20:34:42 EDT
Steps:
- Eclipse 2.1, AJDT 1.1.1 (March 14)
- (I setup only .aj files with AspectJ as default editor)
- only .aj files in my src directory. 
- Simple.aj has main:
public class Simple {
  public static void main(String args[]) {
    System.out.println("hi");
  }
}
- AJDT compiles Simple.aj using AspectJ correctly
- select file in package explorer or class name in editor
- menu Run, Run As..., Java Application
RESULT: dialog saying, 
  "the active editor does not contain a main type"

(My goal is to use the regular Java compiler/editor for .java files
and AspectJ for the .aj files.)
Comment 1 Mik Kersten CLA 2003-06-05 12:29:02 EDT
This would involve changing the Eclipse Java launcher, as a result we will 
postpone it.  You can still launch a main in an ".aj" file if you type the 
class name in instead of using the class search.

Comment 2 Eclipse Webmaster CLA 2009-08-30 02:50:01 EDT
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.
Comment 3 Andrew Eisenberg CLA 2009-09-24 18:29:57 EDT
Fixed now.