tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Osvaldo Brito <>
Subject javac
Date Tue, 03 Oct 2000 08:52:46 GMT

I'm using the javamail api for the first time, and i'll appreciate very
much if you you could help me compiling my first java source. I'm working
on linux, and i wrote the following test program:

import javax.mail.internet.*;
import javax.mail.*;
import java.util.*;
import java.lang.*;

/* ficheiro le 1 mensagem mime de 1 ficheiro mime e escreve no
ecran a mensagem

public class msg {

          FileInputStream mimeStream =
  try {
          mimeStream=new FileInputStream(
                new File(
"/home/osvaldo/javamail/javamail-1.1.3/correio.txt" ));}
          catch (Exception e) {

  /* get a properties object */
//  Properties props = new 
System.getProperties();  throws=SecurityException

        Properties props =
  try {
        props = new System.getProperties();}
        catch(Exception e) {

  /* get a session object */
  Session session =new Session.getDefaultInstance ( props, null );

 /* criacao do objecto do tipo mimemesage */
  mimemsg = new MimeMessage(session, mimefile); //throws

  /*escrita da mensagem no escran*/
  mimemsg.WriteTo (System.out);

when i run, javac i get this stdout,

osvaldo [/home/osvaldo/javamail/javamail-1.1.3/work] > javac
java.lang.NoClassDefFoundError: antlr/collections/AST
        at at.dms.kjc.Main.beautifyParseError(
        at at.dms.kjc.Main.parseFile(
        at at.dms.kjc.Main.compile(
        at at.dms.kjc.Main.main(

Any help? Thanks in advance for reading this mail.   

Osvaldo Brito


View raw message