Package javax.mail not found in import.

hi,
i am trying to develop a mail application using jsp, i have jaf1.0.1 and javamail API and the application was working fine on weblogic but when i tried to do the same thing on Apache server the Package javax.mail not found in import. is occuring,
What could be the problem can any one explain...
Thanks

I think you have not placed mail.jar and activation.jar files in the /jre/lib/ext directory. Just place the mail.jar and activation.jar files in the jdk's /jre/lib/ext directory and check out. This will work for you.
Rkanthj

Similar Messages

  • Package javax.swing not found in import!

    I recently installed JDK 1.3.1_02 on WinNT4.0 and I cannot compile javax
    packages without getting the following error:
    Package javax.swing not found in import
    I've tried every combination of modifying the CLASSPATH system variable
    I can think of. I have no problem compiling java packages but not
    javax packages. I followed the installation instructions to the letter.
    What am I missing? Surely someone is running the same version of
    the JDK I am on WinNT 4.0.

    Thanks again!!! I had an older version of javac running on my system any time I ran
    outside of the bin where the latest javac was installed. I removed the older version
    of the jdk and now I can compile from any directory. I really appreciate the help,
    I was wracking my brain.
    By the way, -version is not a valid flag for javac.exe, although it is for java.exe.
    signed,
    grateful in cyberspace

  • Import javax.mail not found

    Hello,
    I am new to Java Mail. I wanted to test my first programme. When I compile, I get this errors.
    package javax.mail not found in import and so on. I have set my classpath to so
    set classpath = %classpath%;C:\j2sdk1.4.0\lib\mail.jar;C:\j2sdk1.4.0\lib\activation.jar
    I included the mail.jar,smtp.jar and activation.jar in the lib directory of my jdk e.g c:\j2sdk1.4.0\lib\ "the jar file".
    Can any one tell me what I am missing here?
    Thanks
    James

    the easiest way to do this is to put
    activation.jar
    mail.jar          
    mailapi.jar     
    imap.jar     
    smtp.jar          
    pop3.jar
    into the virtual machine directory C:\Program Files\JavaSoft\JRE\1.3.1\lib\ext
    or the lib\ext directory of whatever virtual machine you are using
    and put coppies of them in JDK
    C:\j2sdk1.4.0-beta3\jre\lib\ext
    or jre\lib\ext
    of whatever JDK you are using
    this way they are found automaticaly
    no need for classpath

  • Package javax.ejb not found error

    Hi there,
    I've downloaded j2se 1.4 and j2ee 1.3.1 and installed it on Windows XP. I set the environment variables as described. When I compile a .java file that imports the javax.ejb.* package, then I get an error "package javax.ejb not found". I feel like an idiot and I know it's something to do with the environment variables. (or just XP, most likely)
    Thanks in advance
    Hoenner

    How are you compiling your source? If you're using an IDE then you should edit your project classpath to include the j2ee.jar file (it'll probably be in the lib directory of your J2EE installation).
    If you're doing it from the command line then type in SET CLASSPATH, look at the classpath it returns and check that it includes the j2ee.jar file.
    Hope this helps.

  • Package javax.servlet not found error

    package javax.servlet not found error. how it can be solved.
    plz help this is my first servlet program.
    vipin

    You need a jar file that has in it the javax.servlet.* classes
    It should be distributed with your servlet/jsp server.
    It can normally be found in a /lib directory under the installation.
    Some examples:
    Tomcat4: install_dir\common\lib\servlet.jar
    Tomcat5: install_dir\common\lib\servlet-api.jar; install_dir\common\lib\jsp-api.jar
    J2sdkee: install_dir/lib/j2ee.jar
    You need to include this jar file in your classpath when you compile any servlet.

  • Import javax.mail not found problem

    I have downloaded the most recent mail.jar and activation.jar files and have created a library w/in JDev called javamail and have added these jars to that library. I have also included this library in my ViewController Project. The problem I am having is that the following imports statements are not found by JDev:
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.Multipart;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    When I open up the mail.jar I can find all of these classes, so why are these imports not being recongnized?
    I have also tried import javax.mail.*; to include everthing and this does not work either.
    Does anyone have any suggestions on how to trouble shoot this issue?

    Try to add the J2EE library - which is predefined in JDeveloper- to your project's libraries.
    Worked for me.

  • Package javax.faces not found

    Hi,
    I tried to import the package javax.faces.* but it can not be resolved. Do I have to download this package myself? I'm using jre1.5.
    Thanks!

    JSF isn't part of core Java. You need to download it separately, in a number of ways, and then include it in your compile-time classpath, and put it somewhere your container can get hold of it, too

  • FirstGUI.java:7: Package java.swing not found in import.

    Hi,
    I am currently taking JAVA at UGA and am trying to learn the GUI part on my own, since our professor is not going to cover this. This is the first error I get when I compile the program. Any help is greatly appreciated...
    Thanks,
    Joe
    Below is the program...
    /* A first GUI. This class creates a label and a button. The count in the label is incremented each
    time that the button is pressed.
    import java.awt.*;
    import java.awt.event.*;
    import java.swing.*;
    public class FirstGUI extends JPanel {
         // Instance variables
         private int count = 0;          // Number of pushes
         private JButton pushButton;     // Push button
         private JLabel label;          // Label
         // Initialization method
         public void init() {
              // Set the layout manager
              setLayout( new BorderLayout() );
              // Create a label to hold the push count
              label = new JLabel("Push Count: 0");
              add( label, BorderLayout.NORTH );
              label.setHorizontalAlignment( label.CENTER );
              // Create a button
              pushButton = new JButton("Test Button");
              pushButton.addActionListener( new ButtonHandler (this) );
              add( pushButton, BorderLayout.SOUTH );
              // Method to update push count
              public void updateLabel() {
                   label.setText( "Push Count: " + (++count) );
         // Main method to create frame
         public static void main(String a[]) {
              // Create a frame to hold the application
              JFrame fr = new JFrame("FirstGUI ...");
              fr.setSize(200,100);
              // Create a Window Listener to handle "close" events
              WindowHandler 1 = new WindowHandler();
              fr.addWindowListener(1);
              // Create and initialize a FirstGUI object
              FirstGUI fg = new FirstGUI();
              fg.init();
              // Add the object to the center of the frame
              fr.getContentPane().add(fg, BorderLayout.CENTER);
              // Display the frame
              fr,setVisible( true );
    class ButtonHandler implements ActionListener {
         private FirstGUI fg;
         // Constructor
         public ButtonHandler ( FirstGUI fg1 ) {
              fg = fg1;
         // Execute when an event occurs
         public void actionPerformed( ActionEvent e ) {
              fg.updateLabel();
    }

    The error is below...
    A:\ENGR1140>javac FirstGUI.java
    FirstGUI.java:39: Identifier expected.
    public static void main(String s[]) {
    ^
    FirstGUI.java:39: 'class' or 'interface' keyword expected.
    public static void main(String s[]) {
    ^
    I don't think the actual error is on line 39, I looked in the book that has the code and line 39 is typed just as it is shown in the book.
    Below is the program...
    /* A first GUI. This class creates a label and a button. The count in the label is incremented each
    time that the button is pressed.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class FirstGUI extends JPanel {
         // Instance variables
         private int count = 0;          // Number of pushes
         private JButton pushButton;     // Push button
         private JLabel label;          // Label
         // Initialization method
         public void init() {
              // Set the layout manager
              setLayout( new BorderLayout() );
              // Create a label to hold the push count
              label = new JLabel("Push Count: 0");
              add( label, BorderLayout.NORTH );
              label.setHorizontalAlignment( label.CENTER );
              // Create a button
              pushButton = new JButton("Test Button");
              pushButton.addActionListener( new ButtonHandler (this) );
              add( pushButton, BorderLayout.SOUTH );
              // Method to update push count
              public void updateLabel() {
                   label.setText( "Push Count: " + (++count) );
         // Main method to create frame
         public static void main(String s[]) {
              // Create a frame to hold the application
              JFrame fr = new JFrame("FirstGUI ...");
              fr.setSize(200,100);
              // Create a Window Listener to handle "close" events
              WindowHandler 1 = new WindowHandler();
              fr.addWindowListener(1);
              // Create and initialize a FirstGUI object
              FirstGUI fg = new FirstGUI();
              fg.init();
              // Add the object to the center of the frame
              fr.getContentPane().add(fg, BorderLayout.CENTER);
              // Display the frame
              fr,setVisible( true );
    class ButtonHandler implements ActionListener {
         private FirstGUI fg;
         // Constructor
         public ButtonHandler ( FirstGUI fg1 ) {
              fg = fg1;
         // Execute when an event occurs
         public void actionPerformed( ActionEvent e ) {
              fg.updateLabel();

  • Package javax.servlet not found in sdk 1.4.0_01

    Hi,
    Please correct me if i'm wrong. I was using j2sdk 1.3.1 (standard edition) and have recently upgraded to j2sdk1.4.0_01. I can't find the javax.servlet package in the API. I referred to the j2ee sdk and found the package there. Does it mean that I need to have both the j2sdk1.4.0_01 and the j2sdkee1.3.1 (j2ee) in order to be able to compile and run my codes?
    Thanks.
    Karen

    The servlet packages don't come with the standard SDK.
    You can get them from javasoft.com or if you use the
    Tomcat server they come packaged in a jar file called
    servlet.jar

  • Compiling servlets - package javax.servlet not found

    I can't seem to get the previous questions on this topic - get a page error. I've recently installed j2ee1.4 and j2sdk1.4.1_01 on Win98. I think I've set the CLASSPATH and PATH correctly (and JAVA_HOME). What have I missed?

    servlet.jar in your classpath...

  • Package not found in import --please help me

    Hi,
    when I try to import jack.samples.*(<%@ page import="jack.samples.*" %>)
    into the jsp ,it throws me error stating
    "Package jack.samples not found in import".
    1)After this,added path to this jar file in classpath i.e D:\jack\samples\samples.jar
    2)still,error appears.
    3)Now,added this jar file to jdk lib classes. still,error appears.
    can somebody throw me light on how to trouble shoot this.
    Thanks
    Jack

    Hi,
    I was able to solve the above problem ,the moment I declared the constructor
    has public.Now,I am trying to retreive the Item class partno value and it
    throws me "
    d:\ibm\WAServer\temp\default_host\WCSServlets\_jameco_2F_softproduct_2E_jsp_jsp_1.java:784: No method matching getPartNo&#40&#59;&#41&#59; found in class jack.samples.Item. temp= i.getPartNo&#40&#59;&#41&#59;&#59&#59;
    I wonder what could be the cause.The code of Item class is here:
    package jack.samples;
    import java.util.*;
    public class Item {
    int partno;
    String mfgno;
    String description;
    double cost;
    public Item(int p,String m,String d,double c) {
    partno = p;
    mfgno=m;
    description=d;
    cost = c;
    public int getPartNo() {
         return partno;
    public double getCost() {
         return cost;
    The JSP code :
    <%
    Iterator thisLot=linkTab.iterator(); // Iterate to get all items
         while(thisLot.hasNext()) { // output all the elements
         Item i = (Item) thisLot.next();
    here it fails ******     temp= i.getPartNo();
    %>
    Thanks
    Jack

  • Error not found in import

    mudclient.java:1: Package jagex.client not found in import.
    import jagex.client.*;
    ^
    mudclient.java:2: Class jagex.f not found in import.
    import jagex.f;
    ^
    mudclient.java:3: Class jagex.o not found in import.
    import jagex.o;
    ^
    mudclient.java:12: Superclass e of class mudclient not found.
    public class mudclient extends e
    ^
    4 errors

    hmmm... looks like your classpath is not set correctly. What do you enter when compiling your program?

  • Package corejava.Math not found error !??

    hi, I tried to compile this code but got the
    following error message ----
    what does it mean ????
    ==================================================
    TextSummary.java:17: Package corejava.Math not found in import.
    import corejava.Math.*;
    ^
    TextSummary.java:18: Package corejava not found in import.
    import corejava.*;
    ^
    2 errors
    ==================================================
    /** * @(#)TextSummary.java * * Copyright (c) 2000 by Sundar Dorai-Raj
    * * @author Sundar Dorai-Raj
    * * Email: [email protected]
    * * This program is free software; you can redistribute it and/or
    * * modify it under the terms of the GNU General Public License
    * * as published by the Free Software Foundation; either version 2
    * * of the License, or (at your option) any later version,
    * * provided that any use properly credits the author.
    * * This program is distributed in the hope that it will be useful,
    * * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    * * GNU General Public License for more details at http://www.gnu.org * * */
    package corejava.Graphics;
    import java.awt.*;
    import corejava.Math.*;
    import corejava.*;
    public class TextSummary extends Canvas {
    private Univariate x=null;
    private int width,height;
    private Dimension size;
    private Font font;
    private boolean box;
    private int[] margins;
    private Color textColor;
    private Image offScrImage;
    private Graphics offScrGraphics;
    /* define constants */
    public final static Font DEFAULT_FONT=new Font("Courier",Font.PLAIN,10);
    public final static Color DEFAULT_COLOR=Color.black;
    public final static Format f=new Format("%1.4f");
    public TextSummary() { super(); }
    public void addNotify() {
    super.addNotify();
    offScrImage=createImage(width,height);
    offScrGraphics=offScrImage.getGraphics();
    public void update(Graphics g) {
    paint(offScrGraphics);
    g.drawImage(offScrImage,0,0,this);
    public TextSummary(int width,int height) {
    this.width=width;
    this.height=height;
    size=new Dimension(width,height);
    margins=new int[4];
    margins[0]=10;
    margins[1]=10;
    margins[2]=10;
    margins[3]=10;
    super.setBackground(Color.white);
    box=false;
    font=DEFAULT_FONT;
    textColor=DEFAULT_COLOR;
    public TextSummary(int width,int height,Font font,Color textColor) {
    this.width=width;
    this.height=height;
    size=new Dimension(width,height);
    margins=new int[4];
    margins[0]=10;
    margins[1]=10;
    margins[2]=10;
    margins[3]=10;
    super.setBackground(Color.white);
    box=false;
    this.font=font;
    this.textColor=textColor;
    public TextSummary(int width,int height,boolean box) {
    this.width=width;
    this.height=height;
    size=new Dimension(width,height);
    this.box=box;
    margins=new int[4];
    margins[0]=10;
    margins[1]=10;
    margins[2]=10;
    margins[3]=10;
    super.setBackground(Color.white);
    font=DEFAULT_FONT;
    textColor=DEFAULT_COLOR;
    public TextSummary(int width,int height,Font font,Color textColor,boolean box) {
    this.width=width;
    this.height=height;
    size=new Dimension(width,height);
    this.box=box;
    margins=new int[4];
    margins[0]=10;
    margins[1]=10;
    margins[2]=10;
    margins[3]=10;
    super.setBackground(Color.white);
    this.font=font;
    this.textColor=textColor;
    public void newData(double[] data,boolean plot) {
    x=new Univariate(data);
    if(plot) repaint();
    public void newData(Univariate data,boolean plot) {
    x=data;
    if(plot) repaint();
    public void setMargins(int[] margins) {
    this.margins=(int[])margins.clone();
    public void setGraphicsParams(Font font,Color textColor,boolean box) {
    this.font=font;
    this.textColor=textColor;
    this.box=box;
    public void paint(Graphics g) {
    if(x==null) return;
    g.setColor(Color.white);
    g.fillRect(0,0,width-1,height-1);
    g.setFont(font);
    g.setColor(textColor);
    FontMetrics fm=getFontMetrics(font);
    int yOrigin=height,
    xOrigin=0,
    bottom=-margins[0],
    left=margins[1],
    top=margins[2],
    right=margins[3],
    center=(int)((width-left-right)*.5),
    quarter=(int)((width-left-right)*0.25),
    textWidth,
    textHeight=fm.getHeight();
    textWidth=fm.stringWidth("Summary");
    g.drawString("Summary",left+center-(int)(textWidth*.5),top+textHeight);
    g.drawLine(left,top+textHeight+2,width-right,top+textHeight+2);
    g.drawLine(left,top+textHeight+3,width-right,top+textHeight+3);
    textWidth=fm.stringWidth("N");
    g.drawString("N",quarter-textWidth,top+2*textHeight);
    textWidth=fm.stringWidth(""+x.size());
    g.drawString(""+x.size(),center-textWidth,top+2*textHeight);
    textWidth=fm.stringWidth("Mean");
    g.drawString("Mean",quarter-textWidth,top+3*textHeight);
    textWidth=fm.stringWidth(f.form(x.mean()));
    g.drawString(f.form(x.mean()),center-textWidth,top+3*textHeight);
    textWidth=fm.stringWidth("Var");
    g.drawString("Var",quarter-textWidth,top+4*textHeight);
    textWidth=fm.stringWidth(f.form(x.variance()));
    g.drawString(f.form(x.variance()),center-textWidth,top+4*textHeight);
    textWidth=fm.stringWidth("Stdev");
    g.drawString("Stdev",quarter-textWidth,top+5*textHeight);
    textWidth=fm.stringWidth(f.form(x.stdev()));
    g.drawString(f.form(x.stdev()),center-textWidth,top+5*textHeight);
    textWidth=fm.stringWidth("SE");
    g.drawString("SE",quarter-textWidth,top+6*textHeight);
    textWidth=fm.stringWidth(f.form(x.SE()));
    g.drawString(f.form(x.SE()),center-textWidth,top+6*textHeight);
    textWidth=fm.stringWidth("Min");
    g.drawString("Min",3*quarter-textWidth,top+2*textHeight);
    textWidth=fm.stringWidth(f.form(x.min()));
    g.drawString(f.form(x.min()),width-right-textWidth,top+2*textHeight);
    textWidth=fm.stringWidth("Q1");
    g.drawString("Q1",3*quarter-textWidth,top+3*textHeight);
    textWidth=fm.stringWidth(f.form(x.quant(0.25)));
    g.drawString(f.form(x.quant(0.25)),width-right-textWidth,top+3*textHeight);
    textWidth=fm.stringWidth("Median");
    g.drawString("Median",3*quarter-textWidth,top+4*textHeight);
    textWidth=fm.stringWidth(f.form(x.median()));
    g.drawString(f.form(x.median()),width-right-textWidth,top+4*textHeight);
    textWidth=fm.stringWidth("Q3");
    g.drawString("Q3",3*quarter-textWidth,top+5*textHeight);
    textWidth=fm.stringWidth(f.form(x.quant(0.75)));
    g.drawString(f.form(x.quant(0.75)),width-right-textWidth,top+5*textHeight);
    textWidth=fm.stringWidth("Max");
    g.drawString("Max",3*quarter-textWidth,top+6*textHeight);
    textWidth=fm.stringWidth(f.form(x.max()));
    g.drawString(f.form(x.max()),width-right-textWidth,top+6*textHeight);
    g.drawLine(left,top+6*textHeight+2,width-right,top+6*textHeight+2);
    g.drawLine(left,top+6*textHeight+3,width-right,top+6*textHeight+3);
    /* Canvas Functions */
    public Dimension getPreferredSize() {
    return(size);
    public Dimension getMinimumSize() {
    return(size);

    I'd guess there's a package corejava.Math, which is needed for this code to compile, but you don't have it...

  • Package javax.mail does not exist (Still having trouble)

    Good Morning
    I know that there are several posts regarding issues with javamail. I have viewed them for the past hour. While several of them address my issue I have been unable to locate a solution.
    Bare with me please, I am making this post very thorough. The other threads I have read are frusterating because the problems people tend to post are not clear.
    I am trying to run "msgsend" which is a provided demo of javamail-1.4 using command prompt (start - run - cmd) with the javac command.
    The output below is directly pasted from command prompt and written in bold.
    C:\download\javamail-1.4\demo>javac msgsend.java
    C:\download\javamail-1.4\demo>javac msgsend.java
    msgsend.java:44: package javax.mail does not exist
    import javax.mail.*;
    ^
    msgsend.java:45: package javax.mail.internet does not exist
    import javax.mail.internet.*;
    ^
    msgsend.java:140: cannot find symbol
    symbol : class Session
    location: class msgsend
    Session session = Session.getInstance(props, null);
    ^
    msgsend.java:140: cannot find symbol
    symbol : variable Session
    location: class msgsend
    Session session = Session.getInstance(props, null);
    ^
    msgsend.java:145: cannot find symbol
    symbol : class Message
    location: class msgsend
    Message msg = new MimeMessage(session);
    ^
    msgsend.java:145: cannot find symbol
    symbol : class MimeMessage
    location: class msgsend
    Message msg = new MimeMessage(session);
    ^
    msgsend.java:147: cannot find symbol
    symbol : class InternetAddress
    location: class msgsend
    msg.setFrom(new InternetAddress(from));
    ^
    msgsend.java:151: package Message does not exist
    msg.setRecipients(Message.RecipientType.TO,
    ^
    msgsend.java:152: cannot find symbol
    symbol : variable InternetAddress
    location: class msgsend
    InternetAddress.parse(to,
    ^
    msgsend.java:154: package Message does not exist
    msg.setRecipients(Message.RecipientType.CC,
    ^
    msgsend.java:155: cannot find symbol
    symbol : variable InternetAddress
    location: class msgsend
    InternetAddress.parse(cc,
    ^
    msgsend.java:157: package Message does not exist
    msg.setRecipients(Message.RecipientType.BCC,
    ^
    msgsend.java:158: cannot find symbol
    symbol : variable InternetAddress
    location: class msgsend
    InternetAddress.parse(bcc,
    ^
    msgsend.java:167: cannot find symbol
    symbol : class MimeBodyPart
    location: class msgsend
    MimeBodyPart mbp1 = new MimeBodyPart();
    ^
    msgsend.java:167: cannot find symbol
    symbol : class MimeBodyPart
    location: class msgsend
    MimeBodyPart mbp1 = new MimeBodyPart();
    ^
    msgsend.java:169: cannot find symbol
    symbol : class MimeBodyPart
    location: class msgsend
    MimeBodyPart mbp2 = new MimeBodyPart();
    ^
    msgsend.java:169: cannot find symbol
    symbol : class MimeBodyPart
    location: class msgsend
    MimeBodyPart mbp2 = new MimeBodyPart();
    ^
    msgsend.java:171: cannot find symbol
    symbol : class MimeMultipart
    location: class msgsend
    MimeMultipart mp = new MimeMultipart();
    ^
    msgsend.java:171: cannot find symbol
    symbol : class MimeMultipart
    location: class msgsend
    MimeMultipart mp = new MimeMultipart();
    ^
    msgsend.java:185: cannot find symbol
    symbol : variable Transport
    location: class msgsend
    Transport.send(msg);
    ^
    msgsend.java:193: cannot find symbol
    symbol : class Store
    location: class msgsend
    Store store = null;
    ^
    msgsend.java:195: cannot find symbol
    symbol : class URLName
    location: class msgsend
    URLName urln = new URLName(url);
    ^
    msgsend.java:195: cannot find symbol
    symbol : class URLName
    location: class msgsend
    URLName urln = new URLName(url);
    ^
    msgsend.java:212: cannot find symbol
    symbol : class Folder
    location: class msgsend
    Folder folder = store.getFolder(record);
    ^
    msgsend.java:218: cannot find symbol
    symbol : variable Folder
    location: class msgsend
    folder.create(Folder.HOLDS_MESSAGES);
    ^
    msgsend.java:220: cannot find symbol
    symbol : class Message
    location: class msgsend
    Message[] msgs = new Message[1];
    ^
    msgsend.java:220: cannot find symbol
    symbol : class Message
    location: class msgsend
    Message[] msgs = new Message[1];
    27 errors
    Here are the methods I have tried...
    1. Make sure you have most current version of Java
    2. Reinstall Java
    3. Attempt to compile in an IDE (Attempted in Eclipse 3.2)
    4. Set class path
    Some sources suggest "CLASSPATH" some suggest "CLASS PATH" as the variable name. I have tried both.
    Below is what the classpath looks like in bold.
    Variable Name: CLASS PATH
    Variable value: c:\download\javamail-1.4\mail.jar;C:\download\jaf-1.1\activation.jar;.
    I have double checked all folder names and copy pasted all entries to eliminate typos. Javamail-1.4 and jaf-1.1 are both located in c:\download which is the same location Class Path points to.
    Thank you very much for your input and effort. I can imagine how frusterating it is responding to 20million javamail posts :) (that may be a bit of an overstatement!)
    Thank you again!
    Irbi
    Message was edited by:
    irbi
    Message was edited by:
    irbi

    Yes - I have read that part of the README and did exactly as it has said in a previous attempt. I should have mentioned that here I'm sorry :)
    I moved the .jar files into the download folder and set the classpath exactly as the readme shows.
    When I do that the msgsend.java compiles correctly but it still does not run.
    Below is what happens.
    C:\download\javamail-1.4\demo>set CLASSPATH=%CLASSPATH%;c:\download\javamail-1.4
    \mail.jar;%CLASSPATH%;c:\download\jaf-1.1\activation.jar.
    C:\download\javamail-1.4\demo>javac msgsend.java
    C:\download\javamail-1.4\demo>java msgsend.java
    Exception in thread "main" java.lang.NoClassDefFoundError: msgsend/java
    C:\download\javamail-1.4\demo>
    I have tried fixing this error as well via forums and FAQs but it seems to be the most generic error.
    One suggestion was to clear your classpath. I tried this with a test hello world program which was giving the same error - "NoClassDefFoundError". By clearing the classpath I was able to get the hello world program to run without this error. But I can't just clear the classpath in this instance because it needs to point to mail.jar and activation.jar for the program to compile.
    Thanks again for all of your efforts. You are more appreciated than you know.

  • Package not found in import

    Hello, I�m trying to run a webapplication but I get an Error 500-message in the browser(IE 5): Package not found in import. It is an webapplication with JSPs and an controlling servlet. Does anyone know how to fix that problem?
    Using: Windows 2000, Tomcat 3.2.1 as NT-service, JavaTM 2 SDK, Enterprise Edition, JavaTM 2 SDK, Standard Edition
    Tomcat/webapps/projektverwaltung.war
    Error: 500
    Location: /projektverwaltung/projektverwaltung/JSP/Menue.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\Tomcat\work\localhost_8080%2Fprojektverwaltung\_0002fprojektverwaltung_0002fJSP_0002fMenue_0002ejspMenue_jsp_0.java:15: Package de.zebulon.projektverwaltung.projekttool not found in import.
    import de.zebulon.projektverwaltung.projekttool.*;
    ^
    1 error
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service(Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
         at java.lang.Thread.run(Thread.java:484)
    CLASSPATH: .;C:\;C:\jesdkee1.3\lib\j2ee.jar;C:\jdk1.3.0_01\lib\tools.jar;C:\Tomcat\lib\servlet.jar;C:\de\zebulon\projektverwaltung\projekttool;
    J2EE_CLASSPATH:
    C:\mysql\JDBC_MySQL_mm\mm.mysql-2.0.4-bin.jar;C:\mysql\JDBC_MySQL_Resin\caucho-jdbc-mysql-0.2.2.jar;C:\mysql\JDBC_MySQL_twz\twz1\jdbc\mysql\htdocs\twz1jdbcForMysql.jar;
    J2EE_HOME:
    C:\j2sdkee1.3;
    JAVA_HOME:
    C:\jdk1.3.0_01;
    TOMCAT_HOME:
    C:\tomcat;
    Path:
    C:\PROGRA~1\Borland\Delphi5\Projects\Bpl;C:\PROGRA~1\Borland\Delphi5\Bin;C:\PROGRA~1\BORLAND\CBUILD~1\BIN;C:\PERL\BIN;"%PATH%";%SYSTEMROOT%;%SYSTEMROOT%\system32;%SYSTEMROOT%\system32\WBEM;C:\jdk1.3.0_01\bin;C:\j2sdkee1.3\bin;C:\j2sdkee1.3\lib\j2ee.jar;C:\mysql\bin;
    Server.xml entry:
    <Context path="/projektverwaltung"
    docBase="webapps/projektverwaltung"
    defaultSessionTimeOut="30"
    debug="9">
    </Context>
    Web.xml:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>Projektverwaltung Zebulon</display-name>
    <description>Interne Projektverwaltung Fa. Zebulon</description>
    <welcome-file-list>
    <welcome-file>menue.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>ProjektServlet</servlet-name>
    <display-name>ProjektServlet</display-name>
    <description>Servlet das die Applikation kontrolliert</description>
    <servlet-class>de.zebulon.projektverwaltung.projekttool.ProjektServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <url-pattern>/Projekttool</url-pattern>
    <servlet-name>ProjektServlet</servlet-name>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    </web-app>

    Hello, I try copy C:\de\zebulon\projektverwaltung\projekttool\*.class in
    location that contain file _002fprojektverwaltung_0002fJSP_0002fMenue_0002ejspMenue_sp_0.java.

Maybe you are looking for

  • BPM 11g Process Hierarchy?

    Hi, In the BPA Suite I can define a process hierachy by assigning a BPMN process diagram to a function like a subprocess. (How) can I do this in the BPM Suite 11g?

  • TS4124 playing songs in sequence in a playlist

    in a Playlist - songs listed do not play in a sequence --

  • Time Machine Disaster

    A friend of mine, who I have been trying to get to switch from Windows to Mac for a long time, took the plunge and bought a new MacBook Pro. He is NOT familiar with navigating MacOS. He booted up his new MBP, registered his computer and then plugged

  • Implementi​ng Windows API Shell Execute call

    I am trying to implement the Windows API call in LabVIEW named ShellExecute.  I have created the attached VI and I do not understand why it will not run correctly.  I am hoping that a user on the forum will see the problem and be able to suggest what

  • Reg: Issue on CreateUser - Siebel

    Hi All, We have developed a client code for provisioning accounts into the Siebel, using end-point url. http://<IPADDR>/custappsvcs_enu/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&WSSOAP=1 But when we invoke the createUser of Seibel , it thro