My project directory is ANNEX. I place the main class (ANNEX.java) in
\ANNEX\src\main\java\com\mycompany\app
Does this mean that i have to put
something like this in the POM?
<mainClass>com.mycompany.app.ANNEX</mainClass>.
Also, I intend to distribute it in a single jar, which is executable by just
clicking at the file. How am I suppose to achieve this. I have compiled
several other projects with maven and I have no problem with just putting
the Main class in the tag (<mainClass>MAIN</mainClass>). I dont understand
why I am getting this error now. Please assist me as I dont have much
knowledge in this thing.

This is what is in the manifest :
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: akey
Build-Jdk: 1.6.0_21
Main-Class: ANNEX
Class-Path: plexus-utils-1.1.jar mail-1.4.4.jar


Thanks. 

--
View this message in context: 
http://maven.40175.n5.nabble.com/HELP-javax-mail-could-not-find-the-main-class-tp4614483p4614764.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to