Skip to Content
author's profile photo Former Member
Former Member

Cannot import Amazon package com.amazonaws in my service - Hybris 6.3

Hi Experts,

My requirement is to retrieve the image URL from Amazon S3 bucket and add to media in hybris. Here I am looking to storing the image in Amazon S3 through hybris, but I just want to retrieve already existing image URL from Amazon S3 in Hybris. For this I was using below packages to get the URL. But I am facing errors.

import com.amazonaws.AmazonClientException; import com.amazonaws.AmazonServiceException; import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.BasicAWSCredentials; import; import;

Error : The import com.amazonaws cannot be resolved

Can anyone please let me know, what setting has to be done for this.

Regards, Lavanya K

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 31, 2019 at 11:57 AM

    You'll need to make sure you've added a dependency on the amazoncloud extension to your custom extension:

    <requires-extension name="amazoncloud"/>

    Otherwise it won't find the JARs on its classpath.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.