I have a non-server app I’m working on that uses the java mail library, and ibatis – both of which I’ve used previously in webapps. In Eclipse I have a lib folder that contains the required Jars (mail.jar, activation.jar, various commons- jars, etc.), and I’ve added those jars via – project properties -> java build path -> project libraries, and it runs fine inside of the ide.
Exporting to a JAR though I keep getting;
Exception in thread “main” java.lang.NoClassDefFoundError: javax/mail/Address
I’ve gone round and round on this, and can’t seem to make it work. I’m sure it’s something minor, and I’d appreciate any help. Thanks.