Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

JavaMail

  • 18-03-2003 3:23pm
    #1
    Closed Accounts Posts: 5


    Hi,
    Im having a problem getting the demos working that come with
    the JavaMail instillation.
    They compile fine but when I try to execute I get the following error
    exception in thread 'main' java.lang.NoClassDefFoundError

    I have added JDK, mail.jar and activation.jar to my CLASSPATH and I think my SMTP.Server is correct.
    Can anyone help me with this.
    Thanks


Comments

  • Closed Accounts Posts: 679 ✭✭✭ciano


    Can you post the entire exception?


  • Closed Accounts Posts: 5 james_mcgovern


    This is everything it says:
    Exception in thread "main" java.lang.NoClassDefFoundError:msgsend


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    try.

    set CLASSPATH=%CLASSPATH%;.


  • Closed Accounts Posts: 679 ✭✭✭ciano


    Im surprised it does not tell you what class it can not find. I have a couple of versions of activation.jar on my machine and I noticed that javax.activation.DataSource was not in one of them. You might try opening up the jar and checking if this class is there or not


  • Closed Accounts Posts: 5 james_mcgovern


    Thanks for the feedback, but I got it sorted. The JVM wasn't looking in the current directory so the following change to the code ment it could see mail.jar and activation.jar
    java -classpath ../mail.jar;C:\jaf-1_0_2\jaf-1.0.2\activation.jar;. msgsend
    All the Best
    Jim


  • Advertisement
Advertisement