hey. im trying to make my clients cache download automatically. heres my error
Gui.java:42: not a statement CacheDownloader.downloadCache; ^ 1 error Finished! Press any key to continue . . .
heres my gui
public static void main(String[] args) { new Gui(); CacheDownloader.downloadCache; }
heres "downloadCache" in CacheDownloader
public static void downloadCache(client client) { try { File location = new File(getCacheDir() + "/" + cacheName + "/"); File version = new File(getCacheDir() + "/cache" + cacheName + getCacheVersion() + ".dat"); if (!location.exists()) { downloadFile(getCacheLink(), getArchivedName(), false, client); unZip(); BufferedWriter versionFile = new BufferedWriter(new FileWriter( getCacheDir() + "/cache" + cacheName + getCacheVersion() + ".dat")); versionFile.close(); } else { if (!version.exists()) { downloadFile(getCacheLink(), getArchivedName(), false, client); unZip(); BufferedWriter versionFile = new BufferedWriter( new FileWriter(getCacheDir() + "/cache" + cacheName + getCacheVersion() + ".dat")); versionFile.close(); } else { } } } catch (Exception e) { } }