Java Frrustration with Windows and javax.mail

Please help.
I was under the impression that if you could get java compiled (on any plat form) in my case a linux box and you had the correct version of java (J2sdk1.4.2) that your application etc would run on say a windows box. Is this correct or do you have to recompile the application on for each different platform. My application is running perfectly on a Linux box and I was wanting to see if it would run on a windows box. Having some problems compiling due to class path errors with javax.mail, but if I don't need to recompile for windows, I'll focus on just getting it running ona windows box vrs trying to recompile on windows.
Thanks

O.K. I got my java server to start on windows, thanks for the help and everything seems to be working correctly except that
the server will not update the mysql database.
It can select the data, but can not update the table.
I have check the permission, and even changed to a root login and no luck.
My linux version (working) is running MySql 4.0.23 and connector of
export CLASSPATH=$CLASSPATH:./classes/mysql-connector-java-3.0.9-stable-bin.jar
My windows version MySQL 4.1.10-nt
I have played with a few different version of connectors and all will allow me to connect
3.0.9
3.0.11
3.0.16-ga-bin
none seem to allow me to update on the mysql database which is (being a database person and not a java person.) pertty strange, cause I do understand the database stuff....
Thanks for any idea's

Similar Messages

  • Wanna download javax.mail.* and javax.mail.internet.*

    Hi all;
    i'm a beginner in JSP and want help in downloading api classes for javax.mail.* and javax.mail.internet.*...would any1 like to tell me the URL for it and also after downloading, wat sequence would i follow to make these files run properly with my code.
    would b waiting desperately for immediate response.
    Regards.

    Go to
    http://java.sun.com
    There are 5 drop List. Under the 2nd Drop List Search for JavaMail(TM) API 1.3. Now continue to download. U will download a file names javamail-1_3.zip. There are some jar files which u need to extract and add to ur classpath settings.
    Not use the following code to send a simple SMTP Mail.
    //Java specific imports
    import javax.activation.FileDataSource;
    import javax.activation.DataHandler;
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class SendMail
    Session session = null;
    public SendMail() throws Exception
    Properties props = new Properties();
    String strMailIPServer = "Your SMTP Server IP";
    props.put("mail.smtp.host", strMailIPServer);
    session = Session.getDefaultInstance(props, null);
    public void sendMail(String strToAddress, String strFromAddress, String strSubject, String strMessage) throws Exception
    try
    long intTimeForTenMinutes = 60;
         MimeMessage objMimeMsg = new MimeMessage(session);
    //Address objFromAddr = new InternetAddress(strFromAddress);
    javax.mail.internet.InternetAddress objFromAddr = new javax.mail.internet.InternetAddress (strFromAddress);
    Address[] objToAddr = InternetAddress.parse(strToAddress);
    objMimeMsg.setFrom(objFromAddr);
    objMimeMsg.setRecipients(Message.RecipientType.TO, objToAddr);
    objMimeMsg.setSubject(strSubject);
    objMimeMsg.setContent(strMessage, "text/html");
    Transport.send(objMimeMsg);
    catch (Exception mex)
    throw mex;
    All the Best!
    Thanks and regards,
    Pazhanikanthan. P

  • Will icloud work with Windows 7 " Live Mail?"

    Will icloud work with Windows 7 " Live Mail?"
    Message was edited by: IHW

    Only the email will work,
    Here are the server settings:
    The manual setup section is for Mac Mail, it is not needed, the password and server settings should be adhered to.

  • Help, I installed parallel and windows, and opened videos (on an external hard disk) with windows, and now cannot open them with Mac, and use i movies.  How do I reverse this?

    Help, I installed parallel and windows, and opened videos (on an external hard disk) with windows, and now cannot open them with Mac, and use i movies.  How do I reverse this?

    Paragraphs help the reader, just saying.
    What are you actually trying to do? Why do you need "DVD size" folders if you're creatng an Archive on an external hard drive?
    Also, I understand burning folders instead of individual photos or albums gives you more space on a DVD.
    It makes no difference at all.
    How can I keep the captions on my photos (not events) when I print or transfer to a new folder?
    You can export while writing the metadata to the file in most cases.
    Tne only way I know is to copy photos from the Windows to folders on my HD, then copy and paste photos or albums or events to HD, then create a new folder and fill it to the appropriate DVD size. 
    HD? Another HD? You use HD there in a way that makes no sense. What's the point of 'DVD size'?
    I also thought I should download future photos to my Canon programming that comes with EOS cameras and edit and then decide which photos to save to iPhoto library and which to save only to my archival HD?
    Does this have any relation to the previous questions? You know you can delete from iPhoto, right?
    You're somewhat confused and you need to
    1. Decide what exactly you want to do
    2. Then go about it.
    If I understand you correctly - and there's no guarantee that I do -  the easiest thing is to bring all your Photos into iPhoto and do everything from there.
    You can have an archive on an external disk, you can sort and select and edit with or via iPhoto
    Regards
    TD

  • Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click w

    Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click with the tool "hand" to fit on the screen, but the picture loses sharpness and becomes blurry. If you magnify the image even only slightly with the tool "zoom" the picture comes back clear. In Camera Raw instead is always sharp. I solve the problem by turning off the graphics card in PS but often use plugin that need the graphics card otherwise the processing time is much longer. I ask for help.
    Thanks.

    Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click with the tool "hand" to fit on the screen, but the picture loses sharpness and becomes blurry. If you magnify the image even only slightly with the tool "zoom" the picture comes back clear. In Camera Raw instead is always sharp. I solve the problem by turning off the graphics card in PS but often use plugin that need the graphics card otherwise the processing time is much longer. I ask for help.
    Thanks.

  • Would like to find out how a Pages document might be opened by a recipient that only has a PC with Windows and Microsoft Office.  Is there a conversion program?

    Hi!
    Would like to find out how a Pages document might be opened by a recipient that only has a PC with Windows and Microsoft Office.  Is there a conversion program?

    Making changes to PDF file: Apple Support Communities
    Have just noticed this in a thread today.   The link from Klaus1's post may allow you to use PDF and work on it.   I haven't tried it but it may give you some extra ammunition.

  • The program shany ip surrvilance Playback.exe version 4.0.7.3 stopped interacting with Windows and was closed

    in windows server 2008 r2 running shany ip surveillance
    when i want to playback from record file windows encounter error:The program shany ip surrvilance Playback.exe version 4.0.7.3 stopped interacting with
    Windows and was closed

    Hi Koosha,
    You should ask this question on
    Windows Forums.
    Thanks!
    If this answers your question please mark as answer. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • OUTLOOK.EXE version 12.0.6668.5000 stopped interacting with Windows and was closed.

    I have an end user whose Outlook 2007 is spontaneously closing. It will enter a 'not responding' state and then shut down (and sometimes relaunch). In going through the event log the following information was obtained. O/S is Win-7, 64-Bit. Any input greatly
    appreciated.
    The program OUTLOOK.EXE version 12.0.6668.5000 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
    Process ID: 14ac
    Start Time: 01cf6af126c3ad83
    Termination Time: 79
    Application Path: C:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE
    Report Id: c7d7556f-d9dd-11e3-a17c-2cd05a89d710
    And further into the Event Log (Application)
    - System
    - Provider
    [ Name] Application Hang
    - EventID 1002
    [ Qualifiers] 0
    Level 2
    Task 101
    Keywords 0x80000000000000
    - TimeCreated
    [ SystemTime] 2014-05-12T14:03:22.000000000Z
    EventRecordID 26088
    Channel Application
    Computer uswal-3PLSJX1.amer.thermo.com
    Security
    - EventData
    OUTLOOK.EXE
    12.0.6668.5000
    14ac
    01cf6af126c3ad83
    79
    C:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE
    c7d7556f-d9dd-11e3-a17c-2cd05a89d710
    55006E006B006E006F0077006E0000000000
    Binary data:
    In Words
    0000: 006E0055 006E006B 0077006F 0000006E
    0008: 0000
    In Bytes
    0000: 55 00 6E 00 6B 00 6E 00 U.n.k.n.
    0008: 6F 00 77 00 6E 00 00 00 o.w.n...
    0010: 00 00 ..

    Hi,
    The event log in your posting is a general error event which occurs when application stops responding. Please make sure the latest patches and service packs are installed for your Outlook 2007.
    Please also restart Outlook in safe mode(Start > Run, type Outlook /safe and Enter) to check whether Outlook 2007 is still not responding or not.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • HT1349 So everything on this page relates to Apple products. I am running a Sony laptop with Windows and as soon as I install iCloud desktop iTunes has stopped working. The only time I ever needed it. GREAT! Do you do this on purpose?

    So everything on this page relates to Apple products. I am running a Sony laptop with Windows and as soon as I install iCloud desktop iTunes has stopped working. The only time I ever needed it. GREAT! Do you do this on purpose?

    The latest version of iTunes tends to act up occassionaly. See this support document http://support.apple.com/kb/HT1923 and remove and reinstall iTunes. This will not affect your music library, apps or other content in iTunes. Make sure you follow the steps exactly.
    Also, just copying the ringtone will not get it into your phone. iPhone ringtones have an extension of m4r, and you have to first take the Media player file and covert it to an AAC version. From there you need to change the extension from m4a to m4r. If you cannot see file extensions in Windows Explorer, which is actually the default action, go into Organize>Folder and search options, then hit the View tab, and then remove the checkmark by hide file extensions from known file types. After you have created the m4a version and changed the file extension, you can double-click on it and it should show up in the Tones folder in iTunes. From there, sync the phone and it should show up in the list of ringtones.

  • D20 now only available with Windows and SATA...??

    As of this morning, the Lenovo Thinkstation D20 on the US site is only available with Windows and SATA hard drives.  It used to have SAS drives and DOS available.
    They may just be low on inventory, or maybe... ?
    FWIW
    JohnV474
    Solved!
    Go to Solution.

    Kind of funny you mention this as a few of my team members and I were digging through the CTO site today.  Considering the crazy number of various parts/options that we have qualified for the S/C/D 20 platforms, there are a ton of omissions on the CTO site.  I know they pull some various options from time to time because of inventory or end of life concerns, but the configs that were showing up today as available really made no sense.  Unfortunately there's not a lot I can do from my side to get this resolved other than raise the complaint.  I'll see what I can do though.

  • When Apple solve problems with new iTunes calendar sync with windows and outlook?

    When Apple solve problems with new iTunes calendar sync with windows and outlook?

    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    More Info here...
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622
    If necessary...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I partitioned my apple macbook with windows and mistakenly deleted the apple partition, now i want to restore my system fully to apple. please how can i do that

    i partitioned my apple macbook with windows and mistakenly deleted the apple partition, now i want to restore my system fully to apple. please how can i do that

    If your MacBook shipped with an install disc you'll have to use that. If it didn't you should be able to use Internet Recovery OS X: About OS X Recovery
    EXactly which macbook do you have?

  • SOAP and javax.mail.internet.ContentType

    Hi there,
    I have a problem with a very simple SOAP app:
    I get a saaj error "Unable to internalize message", which gets caused by a
    NoClassDefFoundError: javax/mail/internet/ContentTypeI have tried everything:
    1) Copied mail.jar to ./jre/lib/ext
    2) Added the directory containing mail.jar to the CLASSPATH, in Windoze and in Sun ONE Studio
    When I try to instantiate javax.mail.internet.ContentType in the same app, it works fine, i.e. the class can be found, but saaj doesn't see it for some strange reason.
    Any ideas?
    I am using the Web Services pack 1.3 and java version:
    java version "1.4.1_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
    Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)Thanks in advance
    Andi

    You also need to have the Java Activation Framework available (activation.jar).
    The NoClassDefFoundErr can me caused by a class being used by a class not being found.

  • : Weblogic and javax.mail

    Even I was facing the same problem(Provider rfc )as Jon has, solved it
    thanks to Phil.. set the mail.jar ahead of weblogic.jar.
    But now am getting a different error...
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    javax.mail.SendFailedException: 550 5.7.1 Unable to relay for
    [email protected]
    at javax.mail.Transport.send0(Transport.java:219)
    at javax.mail.Transport.send(Transport.java:81)
    at email.Email.send(Email.java:98)
    at jsp_servlet._email._jspService(_email.java:88)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :208)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:1127)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :1529)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Any thoughts!!
    Thanks!
    hariharan
    "Phil Magill" <[email protected]> wrote in message
    news:<[email protected]>...
    Download the JavaMail Api from sun and add the mail.jar file as the first
    entry on your classpath as these will be call before weblogics internal
    version. There are two files missing from Weblogic which resolve the
    providors.
    Cheers
    Phil
    "Dimitri Rakitine" <[email protected]> wrote in message
    news:[email protected]..
    Install service pack 6
    Jon Crater <[email protected]> wrote:
    I'm having problems sending JavaMail through Weblogic. When I call my
    JavaMail wrapper class from the command line, mail gets sent fine, butwhen
    I try to call them from a servlet in Weblogic, I get a MessagingException:
    "No provider for Address type rfc822"
    Any ideas?Dimitri

    Hi,
    Line: "550 5.7.1 Unable to relay for [email protected]"
    seems to be message from your SMTP server. Try different recipient or
    different SMTP server.
    t.Tero
    hari wrote:
    Even I was facing the same problem(Provider rfc )as Jon has, solved it
    thanks to Phil.. set the mail.jar ahead of weblogic.jar.
    But now am getting a different error...
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    javax.mail.SendFailedException: 550 5.7.1 Unable to relay for
    [email protected]
    at javax.mail.Transport.send0(Transport.java:219)
    at javax.mail.Transport.send(Transport.java:81)
    at email.Email.send(Email.java:98)
    at jsp_servlet._email._jspService(_email.java:88)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :208)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:1127)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :1529)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Any thoughts!!
    Thanks!
    hariharan
    "Phil Magill" <[email protected]> wrote in message
    news:<[email protected]>...
    Download the JavaMail Api from sun and add the mail.jar file as the first
    entry on your classpath as these will be call before weblogics internal
    version. There are two files missing from Weblogic which resolve the
    providors.
    Cheers
    Phil
    "Dimitri Rakitine" <[email protected]> wrote in message
    news:[email protected]...
    Install service pack 6
    Jon Crater <[email protected]> wrote:
    I'm having problems sending JavaMail through Weblogic. When I call my
    JavaMail wrapper class from the command line, mail gets sent fine, butwhen
    I try to call them from a servlet in Weblogic, I get a MessagingException:
    "No provider for Address type rfc822"
    Any ideas?Dimitri
    // Tero Soukko
    // iobox - A Terra Mobile Company
    // +358 50 5435259
    // [email protected], [email protected] (m-mail)
    // http://www.iobox.fi, We bring the Internet to your mobile.

  • Doubt with Windows and Oracle Forms 10G and 11g

    Hi
    I have some doubts in installing Oracle Client on Windows.
    a)Can we install Oracle Forms 10g and Reports 10g client on Windows 7?
    b)Can we install Oracle Forms 11g and Reports 11g client on Windows XP?
    c)If we have an Oracle Forms 11g and Reports 11g, can it connect to a 10g Server?
    d)If we have an Oracle Forms 10g and Reports 10g Client, can it connect to an 11g Server?
    Please, Can any one help me in this????

    a)yes it can be installed on win7, may have some issues on 64bit systems but they're solvable
    b)11g had some problems with windows 2000, but didn't see mention of any problems on XP
    c)if you mean a database server then yes - i managed to connect 11g to an 8i database, so v10 should not be a problem. If you mean a forms/reports server..well newer forms/reports builder might not want to run old forms/reports and vice versa, but I don't see the point of operating on the same files from different versions. You can still load old form/report source files with a newer builder and recompile them to run on the new server.
    d) the "client" is effectively your web browser with a java plugin, unless I misunderstood your question. What version was a form/report compiled with should not be an issue.

Maybe you are looking for

  • Bluetooth on Atheros AW-NB100H, no devices shown after scan.

    I bought a halfmini pci card with the atheros chipset for adding bluetooth to my netbook the chipsets are are AR1111 + AR1005. AR1005 being the bluetooth side which shows up as usb device and so far nothing is turning up any errors yet when i try to

  • Problem downloading PDF files on 9.2.2

    When I download a pdf file the download manager comes on and completes the download , and then I get a failed message (can't remember just what it says). But if I click off the manager I see the file on the desk top. If I click on the file it tells m

  • Firefox PDF links - Trying to Open in Pages

    Hi all, I have a bit of a hiccup in that every time I attempt to click on a PDF link in Firefox 3.6.3 to open the file in Preview, the system attempts to open it with pages and I receive the following error message: The document "PhotoVideo_Solicitat

  • HT5557 Is there a wish list feature in iBooks?

    Been looking in iBooks for a wish list feature, anyone have any luck? Thx & Regards

  • HT4623 my iphone could not activate or no service provider

    mohon bantuan temen2 semua iphone saya 3gs 32gb, saya baru update OS terbaru, tetapi sekarang iphone tidak bisa digunakan karena not service provider setiap mau konfigurasi selalu muncul could not activate your iphone klo temen2 ada yg tau caranya pl