ubuntuusers.de

Wie JAVA MAIL installieren

Status: Ungelöst | Ubuntu-Version: Ubuntu 9.04 (Jaunty Jackalope)
Antworten |

ubuntu810

Avatar von ubuntu810

Anmeldungsdatum:
17. März 2009

Beiträge: Zähle...

Wohnort: Gerasdorf bei Wien

Hallo! Wie kann ich unter Ubuntu die java Mail API installieren?

Drache

Anmeldungsdatum:
5. April 2007

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…

dAnjou

Avatar von dAnjou

Anmeldungsdatum:
8. Oktober 2007

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. 🙄

Antworten |