robert1122
July 16th, 2010, 04:38
Hi,
I'm making a 508 webclient that downloads the cache, etc. I have almost everything done (I will release this on runelocus so people can finally have cache downloader webclients) but I have this small error of code I need help with. I will release this as soon as this code is fixed.
import java.awt.Graphics;
import java.io.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import javax.swing.JApplet;
public class ClientApplet extends JApplet
{
public ClientApplet()
{
}
public void init()
{
instance = this;
try
{
(new Updater()).check();
}
catch(IOException e)
{
e.printStackTrace();
}
setSize(768, 503);
File file = new File((new StringBuilder(String.valueOf(userhome))).append("/.drslife_cache/508/main_file_cache.dat2").toString());
File cachezip = new File((new StringBuilder(String.valueOf(userhome))).append("/.pwnagepkz_cache/508/cache.zip").toString());
if(cachezip.exists() && cachezip.delete())
System.out.println("Cache zip file deleted.");
if(!file.exists())
{
(new File((new StringBuilder(String.valueOf(userhome))).append("/.drslife_cache/508/").toString())).mkdirs();
downloader.execute(new Object()
class _anm1 {}
);
} else
{
client.main(args, "drslife.no-ip.biz");
}
}
public void paint(Graphics g1)
{
}
public static final String ip = "drslife.no-ip.biz";
public static final String args[] = {
"1", "live", "live", "software", "members", "english", "game0"
};
public static String userhome = System.getProperty("user.home");
private static final long serialVersionUID = 1L;
private static ExecutorService downloader = Executors.newSingleThreadExecutor();
public static ClientApplet instance;
}
when i compile i get this error.
ScapeRune 513 Client is Compiling... Please wait.
ClientApplet.java:38: ')' expected
downloader.execute(new Object()
^
ClientApplet.java:39: not a statement
class _anm1 {}
^
ClientApplet.java:39: ';' expected
class _anm1 {}
^
ClientApplet.java:41: illegal start of expression
);
^
4 errors
Press any key to continue . . .
please help fix thanks :)
I'm making a 508 webclient that downloads the cache, etc. I have almost everything done (I will release this on runelocus so people can finally have cache downloader webclients) but I have this small error of code I need help with. I will release this as soon as this code is fixed.
import java.awt.Graphics;
import java.io.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import javax.swing.JApplet;
public class ClientApplet extends JApplet
{
public ClientApplet()
{
}
public void init()
{
instance = this;
try
{
(new Updater()).check();
}
catch(IOException e)
{
e.printStackTrace();
}
setSize(768, 503);
File file = new File((new StringBuilder(String.valueOf(userhome))).append("/.drslife_cache/508/main_file_cache.dat2").toString());
File cachezip = new File((new StringBuilder(String.valueOf(userhome))).append("/.pwnagepkz_cache/508/cache.zip").toString());
if(cachezip.exists() && cachezip.delete())
System.out.println("Cache zip file deleted.");
if(!file.exists())
{
(new File((new StringBuilder(String.valueOf(userhome))).append("/.drslife_cache/508/").toString())).mkdirs();
downloader.execute(new Object()
class _anm1 {}
);
} else
{
client.main(args, "drslife.no-ip.biz");
}
}
public void paint(Graphics g1)
{
}
public static final String ip = "drslife.no-ip.biz";
public static final String args[] = {
"1", "live", "live", "software", "members", "english", "game0"
};
public static String userhome = System.getProperty("user.home");
private static final long serialVersionUID = 1L;
private static ExecutorService downloader = Executors.newSingleThreadExecutor();
public static ClientApplet instance;
}
when i compile i get this error.
ScapeRune 513 Client is Compiling... Please wait.
ClientApplet.java:38: ')' expected
downloader.execute(new Object()
^
ClientApplet.java:39: not a statement
class _anm1 {}
^
ClientApplet.java:39: ';' expected
class _anm1 {}
^
ClientApplet.java:41: illegal start of expression
);
^
4 errors
Press any key to continue . . .
please help fix thanks :)