Need to setup javamail for testing

Hi team, I am new to Java. I am not able to compile javamail application. I download javamail-1.4.1 and jaf-1.0.2 under c:\.
I was update a classpath like this.
.;C:\j2sdk1.4.2_16\bin;c:\javamail-1.4.1\mail.jar;c:\jaf-1.0.2\activation\activation.jar.
Here is my program
public static void main(String[] args) {
// SUBSTITUTE YOUR EMAIL ADDRESSES HERE!!!
String to = "[email protected]";
String from = "[email protected]";
// SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
String host = "mail.yahoo.com";
// Create properties, get Session
Properties props = new Properties();
// If using static Transport.send(),
// need to specify which host to send it to
props.put("mail.smtp.host", host);
// To see what is going on behind the scene
props.put("mail.debug", "true");
Session session = Session.getInstance(props);
try {
// Instantiatee a message
Message msg = new MimeMessage(session);
//Set message attributes
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject("Test E-Mail through Java");
msg.setSentDate(new Date());
// Set message content
msg.setText("This is a test of sending a " +
"plain text e-mail through Java.\n" +
"Here is line 2.");
//Send the message
Transport.send(msg);
catch (MessagingException mex) {
// Prints all nested (chained) exceptions as well
mex.printStackTrace();
}//End of class
When i compile this program i am getting below message
C:\Documents and Settings\Administrator\Desktop\Applet>javac TestEmail.Java
javac: invalid flag: TestEmail.Java
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options
Please suggest and correct me on this.
Thanks in Advance

Hopefully it was clear from the error message that javac didn't even try to
compile your program. Perhaps you need to name your file "TestEmail.java"
instead of "TestEmail.Java"?
Also, if you're still using JDK 1.4.2, it's way past time to upgrade. JDK 1.6 has
been available for a long time. And you don't need the JDK directory in your
CLASSPATH.
Finally, double check that the mail.jar and activation.jar files exist at the
locations you used in your CLASSPATH. That's not your current problem,
but it will be important later.

Similar Messages

  • Do I need to setup TMS for SolMan?

    Hi,
    I am new to SolMan. I need to setup in order to use Maintenance Optimizer.
    Does SolMan need to have TMS configured like other SAP solutions, Dev, QA and Prod? Or there is only one Solman setup and it does everything we need?
    Thank you.

    Usually there will be only one Solution manager in the landscape . You mainly use this for central monitoring, Maintenance Optimizer , creating Keys, Service Desk , proj documentation etc and you are not doing any development work in here. So it does not make sense to have Dev, QA and PRD for solution manager. But you can have a sandbox which will help you to test the Support packs before applying directly in production. Maintenance Optimizer can be configured with Solution manager .
    Thanks
    Prince Jose

  • Need to setup filesharing for 15 macs / photo retouching

    I'm currently using a 4TB Buffalo Terastation NAS, with all users connected by ethernet. What's the best way to improve overall speed performance? Users need to work directly off the shared drive. We are a small retouching studio. The current setup is very slow, esp. when multiple users save/move files at the same time.
    Could I use Snow Leopard server running on a Mac Mini and if so what are my fastest storage options? Am I limited to Firewire 800 speeds?

    When you hit a raid with 15 threads, (even low bandwidth) it will slow down a great deal.
    When we set up systems like this for video editors, we configure and optimize the raids for shared access.
    Also, keep in mind that when you do a finder drag to your local machines, the bottleneck will be your local harddisk. It probably tops out at 40MB/sec. I imagine your clients are mostly gigabit.
    Small Tree sells storage and very large network cards (6 port gigabit and 10Gb) for just this kind of thing. You should check us out.

  • Need FedEx Tracking Numbers for Testing...

    Hi Folks,
    I'm debugging a FedEx tracking utility, but I need a number
    of tracking numbers (preferably a mix of shipping methods, etc) to
    debug. Unfortunately, FedEx support can't provide any, and our
    company has a very limited number (we're tracking inbound orders,
    not outbound).
    If anybody has any FedEx tracking numbers they would be
    willing to share, I would greatly appreciate it! FedEx keeps the
    tracking numbers live for 12 months, so age should not be an issue.
    If you'd prefer an anonomous posting, please just send me
    email and I'll respond directly.
    Thank you!

    Tracking number is specified on delivery_detail_id. You can use following API to update the tracking number. Define a cursor that will fetch the tracking number from staging or intermediate table and pass the following details:
    FOR cur_rec IN cur LOOP
    l_changed_attributes (l_rec_count).delivery_detail_id := cur_rec.delivery_detail_id;
    l_changed_attributes (l_rec_count).shipped_quantity := cur_rec.picked_quantity;
    l_changed_attributes (l_rec_count).tracking_number :=
    cur_rec.tracking_number;
    l_rec_count := l_rec_count + 1;
    END LOOP;
    wsh_delivery_details_pub.update_shipping_attributes
    (p_api_version_number => 1.0
    ,p_init_msg_list => fnd_api.g_false
    ,p_commit => NULL
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data
    ,p_changed_attributes => l_changed_attributes
    ,p_source_code => l_source_code
    ,p_container_flag => l_container_flag
    );

  • Need to setup schedule for TV delivery

    Can't get to a phone till after work this afternoon so thought i would try to do thios online. Got an email saying my order had not been properlly scheduled for home delivery and i needed to contact you asap to set it up.  I would just like to set it as the earliest possible time you can.  Somone over 18 will be there 24/7. Order is for a tv under (removed per forum guidelines)

    Hello mrbkarate,
    I’d be happy to help you with your delivery date inquiry. Good to hear you have someone that can be there at all times to accept the delivery!
    After using the email address you supplied us with, it appears your order has been scheduled for delivery for 09/02/2014. You should receive a call that morning from the delivery driver to provide you with an estimated window of time they expect to arrive. Your delivery appears will be performed out of the Longview, TX (store 594) location. Should you need to reschedule, you may reach out to me here or you may also call that store at (903) 757-9212.
    Thanks for reaching out to us here on the forums! Please let me know if you have any other questions or concerns about your delivery.
    Best regards,
    JD|Social Media Specialist | Best Buy® Corporate
     Private Message

  • HT1752 need printer setup utility for OS. 10.3.7.

    Mac mini from '05 or '06. Os 10.3.7 installed Tiger. several utilities won't work. printer setup ut and About this Mac. (wont show details) etc. There isno software update. Nothing shows. How can I update this mac?

    Hello, so you have a 10.4 Install disc that worked?
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • Need logical setup advice for new iTunes on external HDD and new laptop

    New to Win7, would like to know the best way to re-create from scratch my 5+ year old iTunes library on a new external hard drive without simply copying the previous iTunes folder structure over. I guess that I would like to add all the music, video, movie and iPhone app files to a new library. What is the best method to do this so that iTunes can organize all of the new data from scratch correctly? What about reauthorizing apps and media I purchased through iTunes? anything special to do to reintroduce this data to a new iTunes?
    (to clarify - I intend to install the iTunes program on my local C drive in programs on the laptop and all data on the external drive) Thanks...

    Steve M. wrote:
    I know I should have redundant backups and should probably have a second external HD and eventually will.
    Yes, that's best.
    But for now, if I partition (I'm assuming I should) a new 1 TB external HD, how big should I make the TM partition vs. the SD partition at this point assuming I have under 100 GB on my internal Mac HD? Is this a feasible way of doing things here in the near term.
    Your best bet is to make your TM partition 2-3 times the size of the amount of data you anticipate backing-up. Put it first on the drive; that way, later on you can delete the partition below it, expand the TM partition, and make a new, smaller partition for SD (or use the whole drive). See #1, #3, #5 and #6 in the Frequently Asked Questions *User Tip,* also at the top of this forum, for details.
    By the way, any recommendations on which peripheral HDs to consider? I was very surprised on a recent visit to my local Apple Store that they have a large stock of WD My Studio drives. I mentioned to an Apple sales person that I had always heard WDs were kind of a no-no among Mac users but she assured me the current crop of them were much improved. Any comment on that??
    Most any drive will work with Macs, and Time Machine.
    If you're going to put a "bootable clone" on it, be sure it's a bootable drive. Most PPC Macs can boot only from FireWire; most Intels can boot from F/W or USB. But some Western Digitals won't boot a Mac. Their list of which ones should and +should not+ boot: http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/stdadp.php?pfaqid=1787. But note the disclaimer that they don't support it +*at all.+*.
    In addition, many of them have a built-in sleep mode that cannot be disabled, and sometimes interferes with Time Machine backups: http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/stdadp.php?pfaqid=1376

  • How to setup QoS for IP/Mac Address WRVS4400N

    I need some help setting up QoS for two Cisco/Linksys devivces on my network. 
    Network devices are Comcast SB6120 modem into WRVS4400n (v2.0.2.1 firmware) that divides into one 24 port gigabit Netgear unmanaged switch, 1 port into AT&T Cisco Microcell, 1 port to HP Officejet 7700 wired printer.  Unmanaged switch has approx 10 devices attached (including another 8 port unmanaged gigabit switch).  3 static leases are defined for the network for three devices (HP OJ 7700 printer, Cisco/Linksys PAP2 VOIP adapter, windows home server v1.  DHCP is handled by WRVS4400n.  Comcast service provides 12mbps of service upstream, 4mbps downstream.
    Need to setup QoS for AT&T Microcell and PAP2 VOIP adapter.  The real issue that I can't figure out how to configure is IP based priority access.  I can do rate control for an IP address but can't figure out how to specify priority control for an IP.
    Here are my the current config questions:
    1.  Bandwidth management page:  For the microcell device plugged into port 1, do i set the default CoS to 4 or 1?
    2.  Bandwidth management page:  Should the bandwidth management type be set to priority?  I assume yes since I need to define the UDP/TCP ports for priority.  The major issues here are
    a) one of the ports the Microcell uses is secure https (TCP 443) which is could also be used by any other internet device. 
    b) can't specify priority for the PAP2, since it's behind the unmanaged 24 port switch
    3.  QoS setup page:  Do I need just 2 queues (one for the port ID for the Microcell and one for the IP address of the Linksys adapter)?
    4.  QoS setup page:  I assume I need to define DSCP for the unmanaged switch but not sure how to tie a queue to an IP address
    4.  QoS setup page:  Shoud priority 0 be set for the most important queue (microcell) and the priority 1 CoS be for the VOIP adapter?  Again, not sure about how to define priority by IP address.
    5.  DSCP setup page:  As far as I can find, there's no documentation on how to setup this page.   

    That's what I do. I keep it simple, one calendar, one set of contacts.
    iCloud is really the simplest way to go, as it will sync your (eventual) single Contacts and Calendar across all your devices.
    I would:
    Figure out which single calendar (in Calendar.app) and contacts (in Contacts.app) that you want to keep.
    I'd make a backup of each one. For example,
    in Contacts, File > Export... > Contacts Archive...
    in Calendar, File > Export... > Calendar Archive...
    Make a backup of the other calendar events and contacts that you want to save.
    delete all the contacts and calendars from your phones and your iPad.
    add the contacts and events from the backups to the single calendar in Calendar.app and your contacts in Contacts.app on your iMac. There is probably some way to export the contacts and events you are adding, and then combine them, but you could also just add them manually.
    Then when you configure all your devices for iCloud, they will be all synced automatically.
    Message was edited by: arthur

  • Creating ASM for test purpose

    hi all,
    I am trying to setup ASM for test purpose on winxp with oracle 10g release 1.
    I have created asm instance with
    oradim -NEW -ASMSID +ASM -STARTMODE auto
    and my pfile located in E:\oracle\product\10.1.0\Db_1\database looks like.
    INSTANCE_TYPE=ASM
    ASMALLOW_ONLY_RAW_DISKS = FALSE
    DB_UNIQUE_NAME = +ASM
    ASM_DISKSTRING ='E:\asmdisks\*'
    LARGE_POOL_SIZE = 16M
    BACKGROUND_DUMP_DEST ='E:\oracle\product\10.1.0\admin\+ASM\bdump'
    USER_DUMP_DEST = 'E:\oracle\product\10.1.0\admin\+ASM\udump'
    CORE_DUMP_DEST = 'E:\oracle\product\10.1.0\admin\+ASM\cdump'
    I have created 3 disks with following commands
    asmtool -create e:\asmdisks\disk1 512
    asmtool -create e:\asmdisks\disk2 512
    asmtool -create e:\asmdisks\disk3 512
    now when i do
    SET ORACLE_SID=+ASM
    and
    sqlplus / as sysdba
    I get
    SQL> select path, mount_status from v$asm_disk;
    no row selected.
    and for obvious reasons I get following message
    SQL> create diskgroup data external redundancy disk
    2 'E:\asmdisks\disk1';
    create diskgroup data external redundancy disk
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15031: disk specification 'E:\asmdisks\disk1' matches no disks
    ORA-15025: could not open disk 'E:\ASMDISKS\DISK1'
    ORA-15059: invalid device type for ASM disk
    OSD-04018: Unable to access the specified directory or device.
    O/S-Error: (OS 1200) The specified device name is invalid.
    Please guide me..I am very new to ASM .

    Hi all,
    my problem got resolved.
    I have created same fake disks by asmtool and the created diskgroups by "create diskgroup.. " then I was able to see the diks in v$asm_disk view..
    I have successfully migrated my database to ASM if u have any questions do mail me @ [email protected].

  • Setup freight for miscellaneus ship to party

    Hi,
    I have a scenario where i need to setup freight for a certain sold to party and miscellaneous ship to party. which mean whenever a  certain sold to party and miscellaneous ship to party (meaning ship to party could be anyone) a certain freight should be applied to the sales order.
    Can i do it in SPRO config. or it will require some code.
    thanks

    Hi,
    a. Set up a one time ship - to customer. Assign it to your sold to. The advantage of setting up one time customer is that, every time you enter a sales order for such customer, SAP gives a pop up for the new address. So, you can use this one time customer whenever there is such miscellaneous ship to party scenario comes up.
    b. Set up the condition table and access sequence and condition type for the fright. Make sure that condition table takes up ship to party in the sales order.
    c. Maintain the condition record for freight.
    Now, when you create the sales order and use your miscellaneous customer, the fright condition populates.
    Hope this helps....
    Regards,
    Mukund S

  • How to setup DBI for SCM?

    I need DBI setup guide for SCM & DBI develpment guide (i.e. Dashboard,Ad-hoc reports,DrillDown) one of our biggest client POC?
    Regards,
    Mukarram

    You probably want Fusion Intelligence for EBS in order to take advantage of the integrated Siebel Analytics Dashboards:
    Oracle Fusion Intelligence for E-Business Suite Implementation Guide
    http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120fieig.pdf
    Install and configure OBIEE per the installation guide below:
    Oracle® Business Intelligence Infrastructure Installation and Configuration Guide
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31765.pdf
    Otherwise, use the DBI installation guide for setting up DBI:
    Oracle Daily Business Intelligence Implementation Guide
    http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120dbiig.zip
    If you are using ASCP in your SCM environment, there are some cool new OBIEE based Control Centers in the controlled release of 12.1 for ASCP:
    12.1 APS Installation Notes
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=727535.1
    Oracle Advanced Planning Command Center Release Notes. Release 12.1
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=566094.1

  • What are the steps to setup JavaMail in JDeveloper for Oracle Portlet??

    Dear all,
    I had got a problem in using JavaMail in JDeveloper.
    I am developing a Oracle portlet (actually, it is an online applicatin form for user submission.).
    After user submitted the form, the portlet will send email automatically to someone else for notification. The logic is straight forward.
    I faced a problem on how to setup the environment for calling JavaMail API.
    As far as I know, JavaMail is included in J2EE platform, so I guess I need to put JavaMail classes in the import directives, i.e.
    import="java.util.Properties"
    import="javax.mail.*"
    import="javax.mail.internet.*"
    But, when compile the program, error messages are resulted that JavaMail classes not found.
    Can anyone help me?
    thanks
    George (HK)

    Dear all,
    I switched to use the utl_smtp package for my portlet email function instead of using JavaMail in Portlet.
    But, I still want to know the steps and procedures which I need to take in order to invoke JavaMail in Oracle Portlet development. Anyone any ideas?
    thanks a lot
    George (HK)

  • Need to be able to setup printing for my Ipad2. How do I find the instructions. THe printer is installed and capable, but I do not see it from either my iPad2 OR iphone 4.  Please advise.

    need to be able to setup printing for my Ipad2. How do I find the instructions. THe printer is installed and capable, but I do not see it from either my iPad2 OR iphone 4.  Please advise.

    1. Make sure you've updated the printer firmware and successfully printed the test sheet from the printer.
    2. Make sure that your iPad is on the same network as your printer.
    3. Try printing from an app. To print this page from Safari, for example, go to the rectangle with the right- facing arrow on the toolbar, choose Print from the drop down menu, select your printer, and click Print.
    Printing in apps is usually under the rectangle-arrow symbol, but is also sometimes found under the wrench- "tools" symbol.

  • Email setup for Test Workbench

    Hi
    I am looking to setup Email notifications for Test Workbench.
    Such as, automatically emailing testers when Test packages are assigned
    Emailing Developers when a Test Problem Report is created.
    How do i do this? Does anyone have any documentation they can share?
    Really need some help.
    Many thanks

    Yes Ramesh,
    By setting up ChaRM the following actions can be triggered automatically,
    1) When a requestor creates support message based on an error, service desk employee will be notified automatically
    2) A developer will be notified when a change manager in the service desk assigns a developement task assigns.
    3) When the developer completes the task, change manager will be notified again.
    4) Then, a tester will be notified when change manager assigns a tester.
    and many other things also there in the sequence.
    Regards,
    Satish.

  • How do i setup Mail account on my mac book like in mobile phone? I.e. Don't want to store the mails/attachments on pc, however need the latest emails for given number of days?

    How do i setup Mail account on my mac book like in mobile phone? I.e. Don't want to store the mails/attachments on pc, however need the latest emails for given number of days?
    This helps the storage and purpose of email as well. I could always log into online email account to find history of emails.
    Thanks
    Chai

    How do i setup Mail account on my mac book like in mobile phone? I.e. Don't want to store the mails/attachments on pc, however need the latest emails for given number of days?
    This helps the storage and purpose of email as well. I could always log into online email account to find history of emails.
    Thanks
    Chai

Maybe you are looking for