When you create your JAR file you're only adding SMTPClient.class and SMTP.java. Inner classes are compiled to their own class files, in this case SMTPClient$SendAction.class. You'll need to include that in the JAR file.
I get again error...???
how add a jar in a folder, of another jar from CLI LIKE
jar cmf SMTPClient.mf SMTPClient.jar SMTPClient.class SMTPClient$SendAction.class SMTPClient$UpdateListener.class mail.jar SMTPClient.java
You don't put mail.jar inside the JAR file. You put it in a lib folder that exists in the same folder as your JAR folder. Very few solutions allow you to add dependency JAR file inside the JAR file itself and work immediately. One JAR, as Maneesh suggested, is one of those but I've never used it.
no errors only email not delivered... folder structure correct
matters many jars in containing folder, or folder url with spaces?
posted 10 years ago
first time running jars[gui] non-success, needed anything else from mail.jar any other lib?
target:"C:\Users\User\Documents\TextBooksDataFiles\Java Network Programming, 3rd Edition\jnp3examples\examples\19\SMTPClient.jar"
startin:"C:\Users\User\Documents\TextBooksDataFiles\Java Network Programming, 3rd Edition\jnp3examples\examples\19"
the jar is in the
C:\Users\User\Documents\TextBooksDataFiles\Java Network Programming, 3rd Edition\jnp3examples\examples\19\lib\mail.jar
only from running [CLI] the- java SMTPClient .class -email delivered
this is correct ... how many lines must follow: SMTPClient?
$1 etc are anonymous inner classes. As you already have seen, named inner classes have their name added, like SMTPClient$SendAction.class. The order is most likely the order of occurrence in the source file but I don't know if the Java Language Specification has a hard rule for this.