Big problem!!~plz Help me

i'm a newbie in creating javamail.now i hava the big problem in my coding can someone look 4 me the problem. this is my Coding::
package common;
import java.util.*;
import javax.mail.internet.*;
import javax.mail.*;
public class sendMail{
     public static void send(String host,String from, String to){
     // Get system properties
     Properties props = System.getProperties();
     // Setup mail server
     props.put("mail.smtp.host", host);
     // Get session
     Session session = Session.getDefaultInstance(props, null);
     // Define message
     MimeMessage message = new MimeMessage(session);
try
message.setFrom(new InternetAddress(from));
catch (internet.AddressException e)
System.err.println("Caught Exception: "
+ e.getMessage());
     message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));
     message.setSubject("Hello JavaMail");
     message.setText("Welcome to JavaMail");
     // Send message
     Transport.send(message);
this is my error::
sendMail.java:27: package internet does not exist
catch (internet.AddressException e)
^
1 error
plz help me thanks a lot

In this line catch (internet.AddressException e)
you have a non-existent package "internet".
The correct package for that error is[b] javax.mail.internet; since you have imported this package, you can just delete the invalid information, like this:
catch (AddressException e)

Similar Messages

  • Big Problem, PLZ HELP

    So, when i click on the itunes shortcut, which has the same icon as the Apple Software Updater, I get a box that says that iTunes has encountered a problem and needs to close. We are sorry for the inconvenience. I hit send once and sent the error report, and then restarted my computer to see if that would help. It didnt, so, now i cant access itunes this is a major problem cause i have all my songs on this computer. I also tried to plug in my ipod and see if that would make it load.
    I installed iTunes 7.0 on my laptop, the exact same way, and i works on my laptop, but not on my computer.
    PLZ HELP ME

    ok this is what i did when that happened to me. i uninstalled quicktime then went here: http://www.apple.com/quicktime/win.html and reinstalled the latest version :0)

  • Big Problem,plz help me guys??

    i am getting this message when i want to startup my database
    ORA-16038: log 2 sequence# 117 cannot be archived
    ORA-19809: limit exceeded for recovery files
    ORA-00312: online log 2 thread 1:
    'E:\ORACLE\PRODUCT\10.2.0\ORADATA\PLASMA\REDO02.LOG'
    anybody can help me to solve it by using commands in SQL plus????
    SAMI
    Message was edited by:
    aaaaaaaaaaaaaaaaaaaaaaa

    Your db_recovery_file_dest_size is too small....just do an alter system set db_recovery_dest_size='xG' where x is a number you pick...
    This will get you going...but think about backing up your archive logs if they are taking up the space...look in your db_recovery_file_dest to see what's using up the space...

  • Got A Big Problem Plz Help

    K, the computer with itunes installed is broken beyond repair. I was wondering if it is possible to get all the songs i payed for and downloaded back when I replace the broken computer???
      Windows XP  

    Remove the harddisk and put it into an external case - as long as the harddisk didn't reach end of life, too, everything is still stored there.

  • HT2573 I am using macbook pro with update of 10.7.5...I am not able to authorize my digital signature. It is showing crypto service provider is missing. I am in a big problem. plzzz help me out....thanx

    I am using a mac book pro version 10.7.5..I am not able to authorize my digital signature.It is showing crypto service provider is missing. I am in a big problem . plzzzz help me out. Thanks

    You have 10.6 on that machine, I suggest you stick with it for performance, third party hardware and software reasons as long as possible.
    Consider 10.8 (not 10.7) when it's released, because 10.7 and 10.8 will require a new investment in software and newer third party hardware as it requires newer drivers the old machines won't have. (forced upgrade because of software, really nice of them)
    http://roaringapps.com/apps:table
    Far as your Safari problem do these things until it's resolved:
    1: Software Update fully under the Apple menu.
    2: Check the status of your plug-ins and update (works for all browsers) also install Firefox and see if your problems continue. You should always have at least two browsers on the machine just in case one fails.
    https://www.mozilla.org/en-US/plugincheck/
    Flash install instructions/problem resolution here if you need it.
    How to install Flash, fix problems
    3: Install Safari again from Apple's web site
    https://www.apple.com/safari/
    4: Run through this list of fixes, stopping with #16 and report back before doing #17
    Step by Step to fix your Mac

  • Audio Clip problem plz help..

    There is some problem with my code. It is actually for simply playing a wav file.
    It gives errors on two lines....
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    public class MediaPlayerDemo extends JFrame
         AudioClip clip; //Error Here
         public MediaPlayerDemo(String title)
              super(title);
         clip = getAudioClip(getCodeBase(),"access.wav"); //Error Here
         clip.loop();
         public static void main(String args[])
              MediaPlayerDemo m = new MediaPlayerDemo("Title");
              m.setSize(400,400);
              m.setVisible(true);
    }

    "Audio Clip problem plz help"
    You have to learn to help yourself.
    Have you done anything to try to fix the errors yourself?
    AudioClip clip; //Error Here
    the error generated here is self-explanatory.
    if you can't fix this, you should get a good book on java basics and start again.
    the other error is also easy to fix.

  • Classpath problem plz help me

    hi!
    i am unable to run my RMI server program .Name of My server class is SumServer.java,it implements SumInterface.java all the files(.class,.java and stub) are at location c:\javaprog\rmi\sum.
    I have not put them in any package.
    value of classpath is
    classpath=c:\jdk1.4\lib;.;c:\javaprog\rmi\sum
    i go in sum folder and run the program
    c:\javaprog\rmi\sum > SumServer
    it gives me following exception.plz help me out.
    Thx in advance.
    Exception occur.Unable to register serverjava.rmi.ServerException: RemoteExcepti
    on occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
    java.lang.ClassNotFoundException: SumServer_Stub

    Deepa lakshmi wrote:
    Hi,
    Am new to weblogic.
    Am using the tools are,
    Weblogic8.1 version
    MySql5.0,mysql-connector-java-3.1.12-bin.jar file
    While test configuration of connection pooling am getting the error is "JDBC Driver is not on the classpath".
    How can i solve this problem
    plz help me
    regards
    DeepaEdit the start-weblogic script. Near the bottom, you will see
    lines that create a CLASSPATH for the weblogic server. Add a
    script line that adds the mysql driver to the classpath there.
    Joe

  • Just upgraded to Lion, how can i use my microsoft office especially excel.  I'm getting messages that it's no longer supported.  This is a BIG problem.  Help, please.

    Just upgraded to Lion, how can I use my microsoft office especially excel.  I'm getting messages that it's no longer supported.  This is a BIG problem.  Help, please.

    Apple has made a serious error not advising people when the Lion upgrade occurs that their present software may/will not be compatible and advise the user of such before and allow a opt out.
    All you can do (besides upgrading all your software) is backup your data off the machine (not to TimeMachine) and disconnect all drives.
    Hold c boot off the 10.6 disk and erase your makers hard drive on the far left, (that's the entire drive of everything)
    Partition tab: Option: GUID, format OS X extended and click apply so you get a new GUID (replacing the Lion one or trouble occurs later)
    Quit and install 10.6, then go through setup and use the same name as before, then update to 10.6.8
    Then c boot off the 10.6 disk again and use Disk Utility to Repair the disk the 10.6.8 update messed up.
    Then install all your programs again from fresh sources and lastly your user files in the same main user folders as before (music, pictures, documents etc.)
    Done as described will get you back just like it was before as close as possible, make SURE to use the same username or else your iTunes and other files get all messed up. Password and drive name can be different though if you wish.
    Note: if you've upgraded from 10.5 to 10.6, then you don't get the free iLife as it's not on the 10.6.3 white disks, only on the disks that came with your machine. So that will have to be purchased and reinstalled or use Pacifist to extract it from the 10.5 disks.
    This handy site can advise you what software doesn't work with the Lion.
    http://roaringapps.com/apps:table

  • Problem PLZ Help me

    Hi Guys,
    I have a problem to make a developer application Client/Server.
    When i install forms Runtime on the Client`s computer and i open the application, i get the error that he can`t find the menu and the libraries.
    The menu path is for example on my computer F:\s3\Salesmenu
    But on the client it can be a different path an then he can`t find the menu.
    Now the properties for the main form are:
    Menu module f:\s3\Salesmenu
    Initial menu Salemenu
    Does anyone know how to fix this problem for example:
    1) by let the program search for the menu.
    2) .....
    Plz Help
    Vincent

    set your FORMS60_PATH on the client to Formspath;libpath;menupath so it looks in every dir named in the path.

  • Nokia n79 problem Plz Help!

    Hello!My nokia just stuck,or hang in(i dont now english good) but i cant do enything.Evry button just dont work only at start when i write my pi(and somethimes then too).Works only power button.Its weard.Plz help.Somethimes a whole day are no problems somhetimes a whol day.

    hey ivee n everyone else .. i'm facing the same problem.. n i need to fix this problem myself..
    my n79 gets hang constantly nowadays.. i've used this phone for 1 year plus now so warranty's no more..... none of the buttons on the keypad works when it gets hang.. onli the power button is functioning.. now it's gettin worse .. it even hangs before i insert my pincode... i cant sms, call , or anything.. it hangs after i pressed a few buttons..
    so ivee u've fixed ur n79 youself right..? umm.. can u explain to me wat a smallboard is? is that the board at the lower part of the keypad where u can see buttons underneath the white layer? and is that board expensive?
    pls reply asap anyone.. urgent

  • N79 hanging problem plz help....

    while unlocking the keypad of my n79 sometimes the phone gets hanged then i have to take the battery out and then again switch on the phone........plz help me how to get rid of this problem???

    I have also same problem with my Nokia N79, I just cancelled sensor for automatic themes from cover. Just open back cover & stick some paper or plastic cello tape on four hole marks of covers wich r sensor for automatic themes to change colour of back cover same as theme colour. From 2 days I feel my mobile working fine without hanging ! so try it, all the best.

  • Bluetooth connection problem plz help...

    hi everyone, just bought a new pearl 9105. everything works fine and even bluetooth... through which i can transfer data from blackberry to other mobiles(samsung,sony ericsson)... but the problem is i could not recieve data from other mobiles.i should get contacts list from the other mobiles... but due to this problem i couldnt. plz help me out..

    The best way to receive a file from another device via bluetooth is to go to Media, then press Menu, choose Receive Using Bluetooth, waiting for connection will be display, then send from the other device. It should work without hassle.

  • Applet problem plz HELP

    Hi all,
    I have a problem when I am trying to run a jar file from an applet. The jar is for remote desktop application. Jrdp.jar.
    And the Exception is���.
    Exception in thread "Thread-6" java.security.AccessControlException: access denied (java.util.PropertyPermission gnu.posixly_correct read)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at gnu.getopt.Getopt.<init>(Getopt.java:617)
    at gnu.getopt.Getopt.<init>(Getopt.java:581)
    at net.propero.rdp.Rdesktop.main(Rdesktop.java:290)
    at net.propero.rdp.applet.RdpThread.run(RdpApplet.java:190)
    can any one suggest me what I have to do???? Plz give your valuable suggestion in that matter. Should I have to do any thing in java.policy file. In that case what would be the syntax and what have allow. If possible plz help me out.
    Thanking you,
    With regards
    Shibaji Sabyal

    Try googling on how to sign your applet. The error you're getting can usually be solved by signing it.

  • Package Problem : Plz help

    I've make two classes named First.java and Second.java in e:\javafiles\test\vg folder
    package vg;
    public class First
              public int m = 100;
              public int n = 200;
    package vg;
    public class Second
              public static void me0()
                   System.out.println("Stupid cant u see the value of m is zero");
              public static void mgrn()
                   System.out.println("Yaar m is greater than n");
              public static void neven()
                   System.out.println("The value of n is Even");
    and a Third class
    import vg.*;
    public class Last
              public static void main(String robert[])
                   Second d = new Second();
                   First f = new First();
                   if(f.m==0)
                        d.me0();
                   if(f.m>f.n)
                        d.mgrn();
                   if((f.n%2)==0)
                        d.neven();
                   else
                        System.out.println("The value of n is Odd");
    Now the problem is that if I put the Last.java at e:\javafiles\test and compile it , it works fine but if I put the Last.java anywhere else e.g at e:\javafiles and try to compile it it does not works and gives error
    E:\JavaFiles>javac Last.java
    Last.java:1: package vg does not exist
    import vg.*;
    even if I change classapth variable as E:\javafiles\test or even E:\javafiles\test\vg
    plz help me in this regard

    You need to change where it is trying to find the 'vg' package. So, if your Last.java is in e:\javafiles, then you need to
    import test.vg.*
    e.g.
    import test.vg.*;           // Change this line
    public class Last
              public static void main(String robert[])
                   Second d = new Second();
                   First f = new First();
                   if(f.m==0)
                        d.me0();
                   if(f.m>f.n)
                        d.mgrn();
                   if((f.n%2)==0)
                        d.neven();
                   else
                        System.out.println("The value of n is Odd");
    Alan

  • Applet problem plz help me

    Hi all of you
    i have a very big issue.i create a news ticker in the applet that is running fin but when i m using same file in a web page 2 times b/c its news ticker my applet leave the site after 2 hours.that means applet leave the page & comes on the top screen.i dont know waht is the solution plz help me
    can any one help me plz urgent..
    rakesh.

    What does "b/c" mean?

  • N95 maps problem plz help me

    please any body can solve my problem?
    i have n95
    when i open gps application
    then on the screen globe is not showning and no maps are showing on screen
    only city names are showed
    and after the closing of map application in apst there are type on screen
    saving maps and data
    but now nothing typed
    plz help me

    i am using latest firm ware
    and using old maps application bcoz new beta 2.0 not showing my accurate position in pakistan
    if i am in my city
    the maps application shows u r 10 km from your city
    but old version give me accurate position...

Maybe you are looking for

  • My Macbook Pro is running slow after the Yosemite update.

    I updated to Yosemite before Christmas, and now I have been experiencing an awfully slow internet, which is nearly inoperable, on my Macbook Pro 13 (early 2011). Granted my provider is Comcast, but my roommate, who has a Macbook Pro 17 (2011) is expe

  • Can't open yahoo email in safari

    I just updated my iMac to Leopard. Now, Safari sometimes will not open my Yahoo email account. If I reboot, it will open once, but once I log off, I can't get back on. Foxfire works fine. I could just go ahead and use Foxfire, but have become used to

  • Submit in Acrobat 9.4 Reader and Lotus Notes (Yes, Another Thread)

    OK, I've browsed and searched, but have not found a thing like what is going on.  We run V8.0 of Notes and have a form open in Acrobat 9.4. I've tried clicking the submit button both inside our ISA server domain and directly attached to the outside m

  • I did a comlete system restore now i have no sound

    how do i get my sound back on my hp after a coplete restore

  • Sync Issue between iPad & Macbook Pro

    Ok so here is the issue... My iCloud settings have been enabled for both the Macbook Pro and my iPad2 for everything except for mail and photostream. I mainly need iCloud for my iCalendar Calendars and documents through Pages, Keynote, and Numbers. F