File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes IWAE0035E The Main-Class attribute must be defined in the application client module Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "IWAE0035E The Main-Class attribute must be defined in the application client module" Watch "IWAE0035E The Main-Class attribute must be defined in the application client module" New topic
Author

IWAE0035E The Main-Class attribute must be defined in the application client module

Kaverappa Prabhakar
Ranch Hand

Joined: Aug 18, 2009
Posts: 43

I am using Eclipse Gallieo version Java EE IDE for Web Developers. Build id: 20090621-0832 for the first time and learning to build Java application. I get the following compilation error:

" IWAE0035E The Main-Class attribute must be defined in the application client module "

Can any one tell me what is this Main-Class attribute?

Thanks,
Prabhakar
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
It's a property in a manifest document that defines the class containing the main() method used as the application entry point. It sounds like your project is not set up as a simple Java application.
Kaverappa Prabhakar
Ranch Hand

Joined: Aug 18, 2009
Posts: 43
David,

It was nice to see your response.

Thanks for letting me know what is Main-Clause attribut and where it should be defined. I will try to figure out how to define that in the Manifest document.

Yes, you are right my project is not set up as simple Jave application. It has JSP, HTML, CSS, JSP scripting element, Java beans, Java Class etc.

I was asked to move Java application from Oracle JDeveloper to Eclipse-Java EE IDE. Therefore, I have no time to learn Eclipse by doing simple projects first which is the right way to learn. Our non technical management runs IT and does not understand it at all. However, I was able to migrate the java application from Oracle JDeveloper to Eclipse IDE with just two compilation errors. This clearly tells me Java is portable. Oracle JDeveloper is a much better tool than Eclipse.


After reading your note " not set up as a simple java application" I looked at Eclipse closely and realized that I should create a dynamic web project instead of the one I created (Application client project/module) This application client project/module requires Main-Class attribute defined to run the java application.

Since my project should be a Dynamic web module I deleted Application client module and created Dynamic web module and compiled it without any errors (there was no complaint about the need of main-class attribute). It looks to me this Dynamic web module does not require main-clause attribute since this module/application is driven initially by a main driver JSP which in turn drives the main method in a main java class.

I succeeded in running the Tomcat server within the Eclipse IDE environment. But could not run the application within Eclipse IDE. I will be posting a new topic for this new problem.

Thanks again and as always for your expert advice.

Prabhakar
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
Kaverappa Prabhkar wrote: Oracle JDeveloper is a much better tool than Eclipse.

Not really.
 
 
subject: IWAE0035E The Main-Class attribute must be defined in the application client module
 
MyEclipse, The Clear Choice