• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

How to use Aspirin

 
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've downloaded the Aspirin library. It is a ZIP file.

But it doesn't contain any .class files for the org.masukomi.aspirin.core package. Therefore I couldn't use it as a library. Please tell me how to do this?
 
Rancher
Posts: 43045
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just took a look at the 0.6.6 version, and it has those classes. Did you check out the included jar files?
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:I just took a look at the 0.6.6 version, and it has those classes. Did you check out the included jar files?



No their were no any .class files.

But Ok, I got it right now.

The ZIP file contains a build.xml file and I run "compile" and "assemble" commands of it by using ant. After that, .class files were auto-generated.
 
Ulf Dittmer
Rancher
Posts: 43045
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

No their were no any .class files.


Why do you need loose .class files? The aspirin.jar file contains all the classes.
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:

No their were no any .class files.


Why do you need loose .class files? The aspirin.jar file contains all the classes.



The aspirin.jar file which is included in the original ZIP file, doesn't contains any .class files. Even I set it to the classpath, the code doesn't compile as their are no any classes.

But the aspirin.jar file which is generated by the ant script contains all of the classes, so I can use that jar file on the classpath.
 
Ulf Dittmer
Rancher
Posts: 43045
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The aspirin.jar file which is included in the original ZIP file, doesn't contains any .class files. Even I set it to the classpath, the code doesn't compile as their are no any classes.


That's interesting. I downloaded version 0.6.6 from https://aspirin.dev.java.net/servlets/ProjectDocumentList this morning, and the aspirin.jar file contained in it worked just fine. Where did you download it from?
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I downloaded it from http://github.com/masukomi/aspirin/tree/master few days ago. The site http://aspirin.dev.java.net refers to the above site

aspirin.dev.java.net wrote:Aspirin development has moved to GitHub. The code here should be considered functional, but obsolete. If you still want the old code you can get it by clicking the Documents And Files link in the sidebar, or just checking out the source code from CVS. I'd recommend grabbing it from CVS then just running ant.[/auote]

 
Ulf Dittmer
Rancher
Posts: 43045
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So there's some new development after a few years of dormancy - cool. And from the release notes it looks like they fixed the problem with having multiple threads (I ran into that a while ago, and had to use just a single thread to get around it).

By the way, they're still using JavaMail 1.4.1; you may want to upgrade to 1.4.2.
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer for letting me know about Aspirin. But now, I'm going to give up using Aspirin, as I encountered a problem with it.

Now I'm trying to search for an online SMTP server, which can be used without having authentication.
 
Ulf Dittmer
Rancher
Posts: 43045
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, OK. But just to be clear: That's not a problem with Aspirin; it's a consequence of the way in which you are using it. If the server it's running is identifiably part of the domain "sample.com" then it should work. But I suppose it's possible that's Google's mail server checks the MX records of the domain it's receiving mail from, and that's something you wouldn't want to set up for this particular use case.

There are no publicly available email servers that don't require authentication; those days are long over.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic