You need to download the corresponding jar package first, and then "build path-> configure build path-> add external jar" in eclipse
Give me a download address: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-eeplat-419426.html#javamail-1.4.5-oth-JPR
1. It must be useful to others. Maybe those classes have been introduced in the parent class of the class you see. 2. When you imported it, it reported an error because it was not compiled. The reason is that you need to set this: "build path-> configure build path-> add external jar" 3. Eclipse often cramps, import jar package, recompile the project, refresh the entire project, and it will be fine.
You need to download the corresponding jar package first, and then "build path-> configure build path-> add external jar" in eclipse
Give me a download address: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-eeplat-419426.html#javamail-1.4.5-oth-JPR
Recommended to use
commons-Email
,这个Jar
bags everywhere1. It must be useful to others. Maybe those classes have been introduced in the parent class of the class you see.
2. When you imported it, it reported an error because it was not compiled. The reason is that you need to set this:
"build path-> configure build path-> add external jar"
3. Eclipse often cramps, import jar package, recompile the project, refresh the entire project, and it will be fine.