• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with sending emails using JavaMail (ClassFormatError)

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.

I want to send e-mail through my app. I don't use any server application, I'm just compiling it with Netbeans.

User should fill the form and press the "wyslij" button, then the subject, "from who" and message goes to constructor of "wyslijEmail" class and it should send the email with those 3 variables.

This is my form (this is only a part of app - and sorry for non english names of methods and variables):



And here is the class which is responsible for sending e-mails:


When I press the wyslij button ive got an error:



I was looking something in google, but i found only answers to add dependency to pom.xml (in maven), but I don't use it so I can't add it there... I have also check that under Eclipse but it throws still the same error. Please give me a tip how to resolve that problem.
 
Marek Krokosinski
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Umm nevermind now ! I found the solution. The problem was with javaee jars in class path. When i removed it the problem is gone.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic