public void setAppletAndCanvas() {
		try {
			BotStub stub = new BotStub();
			
			ReadableByteChannel ch = Channels.newChannel(new URL(Bot.WORLD + "/" + stub.getParameter("archive")).openStream());
			FileOutputStream fos = new FileOutputStream("client.jar");
			fos.getChannel().transferFrom(ch, 0, Long.MAX_VALUE);
			
			URLClassLoader loader = new URLClassLoader(new URL[] { new File("client.jar").toURI().toURL() });
			
			JarFile file = new JarFile("client.jar");
			Enumeration<JarEntry> en = file.entries();
			while(en.hasMoreElements()) {
				JarEntry entry = en.nextElement();
				if(entry.getName().contains(".class")) {
					loader.loadClass(entry.getName().replace(".class", ""));
				}
			}
			
			/*URL jarFileUrl = new URL("jar:" + Bot.WORLD + "/" + stub.getParameter("archive") + "!/");
			JarURLConnection jarConn = (JarURLConnection) jarFileUrl.openConnection();
			URLClassLoader loader = new URLClassLoader(new URL[] { jarConn.getJarFileURL() });*/
			applet = (Applet) loader.loadClass(stub.getParameter("code").trim().replaceAll(".class", "")).newInstance();
			applet.setStub(stub);
			applet.init();
			applet.start();
			applet.setPreferredSize(Bot.SIZE);
			loader.close();
			file.close();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
	}