package com.wa.test.client;
import com.google.gwt.core.client.EntryPoint;
import com.nubotech.gwt.oss.client.OnlineStorageService;
import com.nubotech.gwt.oss.client.OnlineStorageServiceFactory;
import com.nubotech.gwt.oss.client.auth.Credential;
public class TestAmazon implements EntryPoint {
public void onModuleLoad() {
Credential credential = new Credential("[email protected]", "QFTG8an1yTB");
OnlineStorageService storageService = OnlineStorageServiceFactory.getService(credential);
storageService.createBucket("myFirstBucket");
}
}
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='testamazon'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.nubotech.gwt.oss.Oss'/>
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.clean.Clean'/>
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
<!-- Other module inherits -->
<!-- Specify the app entry point class. -->
<entry-point class='com.wa.test.client.TestAmazon'/>
<!-- Specify the paths for translatable code -->
<source path='client'/>
<source path='shared'/>
![enter image description here][1]</module>
이것은 내 코드이며 jar 파일 gwt-s3-api-0.9.3
도 포함됩니다. 그것은 다음과 같은 오류를 제공합니다 : 당신은 항아리의 일치하지 않는 버전을 사용하는Gwt 및 Amazon S3 통합 오류 발생
12:40:38.347 [ERROR] [testamazon] Errors in 'jar:file:/D:/Technologies/Java/Amazon/jar/
gwt-s3-api-0.9.3.jar!/com/nubotech/gwt/oss/client/s3/MockS3OnlineStorageService.java'
[ERROR] [testamazon] - Line 28: The import com.google.gwt.user.client.HTTPRequest
cannot be resolved
에서 지원의 HTTPRequest 클래스를 사용하고 있습니다. 하지만 여전히 위와 같은 문제가 있습니다. –
어떤 버전의 GWT를 사용하고 있습니까? – SSR
GWT 2.4.0을 사용했습니다. –