I'm having trouble including a JAR file that adds a class that will let my main class send emails.
What I have done...
Updated the dependency in my POM file, as follows:
Add the import (NetBeans automatically added this when I used the Email class, so it seems to know where to look...)
Call the class, directly using the structure provided
//send an email
.withSubject("[RP] Server has started")
.withBody("This is the body!")
I can build fine, it all works out... but then when I try to run it (as a plugin to Minecraft), I get a NoClassDefFoundError, as shown here:
I don't understand what I'm missing here. Can anyone point me in the right direction?
<scope>system</scope>. Is it available in the Minecraft enviroment? See Maven, Introduction to the Dependency Mechanism, Dependency Scope: "This scope is similar to
provided [...] " and under provided: "indicates you expect [...] a container to provide the dependency at runtime."
It means that you are missing the jar in your runtime environment. You might need to change the scope of your maven dependency to compile.
EmailAPI requires two JARs in order to run. I think they are activation and mail or something. I can look at the project but I think you might be missing them.