Hallo! Wie kann ich unter Ubuntu die java Mail API installieren?
Wie JAVA MAIL installieren
![]() Anmeldungsdatum: Beiträge: Zähle... Wohnort: Gerasdorf bei Wien |
|
Anmeldungsdatum: Beiträge: 2377 |
Wo ist das Problem? Das ist ein Java Anwendung – die muss gar nicht installiert werden, einfach runterladen entpacken und mittels Java Runtime Environment JRE starten… |
![]() Anmeldungsdatum: Beiträge: 872 Wohnort: Berlin |
In http://java.sun.com/products/javamail/README.txt steht: Installation ------------ UNIX/Linux ---------- 1. Unzip the javamail1_4_2.zip archive. (You may have already done this.) 2. Set your CLASSPATH to include the "mail.jar" file obtained from the download, as well as the current directory. Assuming you unzipped javamail1_4_2.zip in /u/me/download/ the following would work: export CLASSPATH=$CLASSPATH:/u/me/download/javamail-1.4.2/mail.jar:. Also include the "activation.jar" file that you obtained from downloading the Java Activation Framework, in your CLASSPATH. For example: export CLASSPATH=$CLASSPATH:/u/me/download/activation/activation.jar 3. Go to the demo directory 4. Compile any demo using your java compiler. For example: javac msgshow.java 5. Run the demo. The '-' option lists the required and optional command-line options to successfully run any demo. For example: java msgshow - lists the available options. And java msgshow -T imap -H <mailserver> -U <username> -P <passwd> -f INBOX 5 uses the IMAP protocol to display message number 5 from your INBOX. (Additional instructions on how to run the simple mail reader demo and servlet demo are provided in demo/client/README.txt and demo/servlet/README.txt, respectively.) Wenn du diese API zum programmieren brauchst, dann find ich es schon ziemlich peinlich, dass du hier als Entwickler sowas fragen musst. 🙄 |
« Vorherige1Nächste »
Antworten |