//This code reports a non static method and I have not got a clue why, can anyone help? package google; import com.google.gdata.client.*; import com.google.gdata.client.sites.*; import com.google.gdata.data.*; import com.google.gdata.data.acl.*; import com.google.gdata.data.media.*; import com.google.gdata.data.sites.*; import com.google.gdata.data.spreadsheet.*; // If working with listpages / listitems import com.google.gdata.util.*; import java.net.*; import java.io.*; public class Google { public static SitesService client = new SitesService("NCC-Google-App-v1"); public String getSiteFeedUrl() { String domain = "nsix.org.uk"; return "https://sites.google.com/feeds/site/" + domain + "/"; } public SiteEntry createSite(String title, String summary, String theme, String tag) throws MalformedURLException, IOException, ServiceException { SiteEntry entry = new SiteEntry(); entry.setTitle(new PlainTextConstruct(title)); entry.setSummary(new PlainTextConstruct(summary)); Theme tt = new Theme(); tt.setValue(theme); entry.setTheme(tt); entry.getCategories().add(new Category(TagCategory.Scheme.TAG, tag, null)); return client.insert(new URL(getSiteFeedUrl()), entry); } public static void main(String[] args) { // Non static method on the following line SiteEntry newSiteEntry = createSite("My Site Title", "summary for site", "slate", "tag"); } }