The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:If you're depending on an IDE for stuff like this, you're leaning on crutches.
I haven't been paying attention to the full-stack JEE implementations, but Tomcat doesn't include javamail in the container, so for Tomcat, at least, you have to include 2 jars in your WAR: javamail.jar and activation.jar.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:We're have a strict "no-flame" policy on the JavaRanch, but after a few hundred "I'm using Brand X IDE how do I...: questions, I'll admit sometimes my patience gets a little strained. We are, after all, attempting to help people become more skillful on their own, and not just by leaning on specific products. Which is why if you should scan the IDE forum for the question "Which IDE should I use?", a very frequent response is "Windows Notepad".
Tim Holloway wrote:Eclipse is not a JEE container. Unless suitable plugins are added, it has no JEE capabilities or knowledge at all. Eclipse is also not intended to serve as a JEE application server, since there's nothing it can add that the regular JEE appservers don't already supply. You use Eclipse to design, edit, maintain and debug JEE code. Therefore the concept of "using JEE in Eclipse" is technically incorrect unless you intend to write a JEE plugin that wants to send and receive email, such as perhaps an integrated email client.
Tim Holloway wrote:It's fairly obvious that this wasn't what was intended here, however, and what was intended was the development of a JEE application using javamail. Which is perfectly possible without using Eclipse. And, as far as I know, Eclipse doesn't have any plugins for that purpose anyway, since it's not something that requires a whole slew of wizards, documentation aids, debugging tools, code generators and other appurtenances that make an IDE so useful.
Tim Holloway wrote:If I seem sensitive on this subject it's because I've seen too many cut-rate programmers being employed to develop products that they don't understand using tools that - as far as they're concerned - operate by magic. There's just too much bad software out there already to make me happy with that.
Kamil Kuchta wrote:
import.javax.mail.*; doesn't work. What should I do to import JavaMail from JEE platform?
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.