I agree, looks fine you don¹t mention if your using maven or whatever, but IMO, make sure you¹ve set the dependencies properly and that your running the right goal on your pom.xml
Also, you probably don¹t want to post your secret for S3 as people could log into your account with it. Cheers, Tim On 20/07/2009 16:52, "David Pollak" <feeder.of.the.be...@gmail.com> wrote: > > > On Mon, Jul 20, 2009 at 8:04 AM, kjetilge <kjeti...@gmail.com> wrote: >> >> I'm trying out the jets3t library for handling S3 storage. But when I >> try to make calls to methods in the library I get: >> AWSCredentials does not have a constructor. >> >> Here's my code: >> >> package s3test >> >> object Main { >> >> import org.jets3t.service.S3Service >> import org.jets3t.service.S3ServiceException >> import org.jets3t.service.impl.rest.httpclient.RestS3Service >> import org.jets3t.service.model.S3Bucket >> import org.jets3t.service.security.AWSCredentials >> >> def main(args: Array[String]) :Unit = { >> val awsAccessKey = "0MC80SD02DQTGPP5XZ02" >> val awsSecretKey = "EZDhuveb/94Fibwu48SCKVuiCV4T3PGlkYQTWdCr" >> var awsCredentials = new AWSCredentials(awsAccessKey, >> awsSecretKey) >> println("") >> >> } >> >> } >> >> I've tried the equivalent code in Java, and that works, so the library >> should be imported correctly. (Using NetBeans) >> >> Have anybody succeeded using this library ? Doe's anybody know what's >> going on here ? > > I was able to compile the above code with: > > scalac -cp ~/lang/jets3t/jars/jets3t-0.5.0.jar S3.scala > > > >> >> >> > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---