Yes This Is Leeched From Silabsoft But Credits Are Given. But Loads Of People Want To Know How To Do It Since It Makes Your Server More Popular.
How to make a WebClient
Contents:
Chapter 1: Getting the Web Client
Chapter 2: Getting a website
Chapter 3: Changing some things
Chapter 4: Javing and Signing your webclient
Chapter 5: Making the html code for your webclient
Chapter 6: Credits
Getting the Web Client
You can download my base here: **********: Easy Filehosting
you can get WinRAR here: WinRAR archiver, a powerful tool to process RAR and ZIP files
Getting a website
You can go signup for a free website with these hosts:
*********
bravene*****m
000webhos*****m
Changing some Things
1st thing to do is change the name to do is rename the client to your server name:
1st look for: in Frame_Sub1.java
Code:
Code:
WebClientjust rename it to your server.
2nd changing the cache folder name
go into the sign folder and look for signlink.java
Search for:
Code:
Code:
findcachedir()
you should press find twice and under findcachedir() you should see this:
Code:
Code:
String s = "C:/.webclient_file_storage_32/";
File file = new File(s);
if(file.exists() || file.mkdir())
return s + "/";
}see where is says C:/.webclient_file_storage_32/ just rename webclient to your server name.
3rd renaming the text in client.java
press CTRL + H and typ in this in the first box:
Code:
Code:
WebClienton the bottom box put your server name. then press replace all.
now wi'll your in the client.java go to the very top of it. now press CTRL + F and type in
Code:
Code:
setserverpress next, and you should see this code:
Code:
Code:
setserver("127.0.0.1", "43594");where it says 127.0.0.1 just type your server's ip address, this makes it connect to your server when you login.
4th changing the Sprite Directory:
first open up Class30_Sub2_Sub1_Sub1.java
press CTRL + H and in the first box type:
Code:
Code:
.webclient_file_storage_32on the bottom box type the cache folder you put in signlink.java
5th Changing the title of the cache downloader
open up Updater.java in the folder with all of the files.
You should see something like:
Code:
Code:
public void get(String url, String name1, String dir1, String type)
{
dir = dir1;
name = name1;
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame frame = new JFrame("DragonKinghelper's Cache Downloader");
frame.setLocationRelativeTo(null);
frame.setLayout(new BorderLayout());
frame.setPreferredSize(new Dimension(500, 80));See where it says DragonKinghelper's Cache Downloader, put your cache downloader name there.
After your done compile everything.
Jaring and Signing your client
1st download the jarmaker here:JARMaker.rar
after you have downloaded it extract to a folder anywhere you want.
2nd open JarMAKER.jar
after that where it says Output file press the little "..." button and find where you want it to put your webclient.jar
after that where it says application.jar next to it put webclient.jar
then where it says Input Directory find the folder where all the files of the webclient are where we worked on. But don't actually open the folder, just click the folder that contains all of them then in the bottom corner press ok.
then where it says Mainfest Template (its a button) click it and type client where it says Main-Class,
don't type anything anywhere else then click the button that says "Set Manifest".
when you go back to the main page of the jar maker press Create jar on the bottom.
Now Signing the client, Description: after you signed and uploaded the client to the website (like RuneScape) another window will pop up and say run this app? This is typing in what the run this app popup say.
1st look down a little bit and you will see a tab called Jar Signer, click it.
don't type anything in the Signed Jar file form.
below that you will see Jarsigner Location type in this but with your jdk version:
Code:
Code:
C:Program FilesJavaYOURJDKVERSIONbinjarsigner.exeafter your done with that below you will see "Keystore file" to the right press "Generate KeyStore"
you shoul see "Keytool Location" type this in there:
Code:
Code:
C:Program FilesJavaYOURJDKVERSIONbinkeytool.exe
below that you will see "Output Keystore file" type in the folder of your webclient files again, then on the end of that
type certificate ex:
Code:
Code:
C:Documents and SettingsYour NameDesktopwebclientwebclientCERTIFICATEafter that below you will see "Keystore Alias" Type in your company name or who created the server.
and below that you will see "Public Key" and "Private Key". Type in a password of your choice.
keep the validity days 0 in meens 120.
and below that! you will see Common Name:
type in your company name.
then leave the rest of the below forms blank.
at the bottom press "Generate KeyStore"
after type in where you put the certificate next to "Generate KeyStore" button. Which would be in your webclient files.
below that you will see KeyStore alias public and private key forms again. Just type in the the same thing you typed in in the last form.
Now press Sign Jar! Then upload you applet to your website.
Making the HTML file
on your website make a page called webclient.htm
and for the code for that page put this:
Code:
Code:
<html>
<title>Your Server Name</title>
<body bgcolor="000000">
<applet name="Your Server name" archive="where your webclient.jar is located" width="765" height="503">
</applet>
</body>
</html>now add a link on your websites main page so people can play!
Credits to SilabSoft and Me.