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("xyz@gmail.com", "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
。它给出如下错误:
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