K
King Lolther
Guest
If people leech this I will Delete it. Also, this is somewhat Anti-Noob.. There are no errors. I just made it hard to find stuff in some parts.
Purpose: To Create a webclient
Difficulty: 6/10
Assumed Knowledge: Java Fundamentals?
Client Base: All
Classes Modified: Client.java, Class 30 Sub 2 Sub 1 Sub 1
Procedure
Client.java
Step 1: Go into your client folder and open up client.java. Search for
Code:
. Once there repalce the whole void with this
Code:
Step 2: Search for
Code:
Once you have found it replace the whole thing with
Code:
Step 3: Search for
Code:
Replace the whole thing with
Code:
Step 4: Search for
Code:
And Replace it with
Code:
Step 5: Find
Code:
And replace it with
Code:
Other
Step 1: Open up Class 30 sub 2 sub 1 sub 1 and import this package
Code:
Step 2: Find where your picture loads from. Make it look like this
Code:
Step 3: Open up your META-INF Folder and delete everything. Make a .txt file in the META-INF Folder and place this inside of it
Code:
Then Click File -> Save as -> MANIFEST.MF -> All Files.
Step 4: Make your client load the cache from Mopars. Follow my Making a JAR And Signing a JAR Tutorial(Will be made later)
Step 5: Upload the JAR to your webpage. Make a file called index.html and place this in it
Code:
If everything has been completed right you now have a working webclient that connects to servers!
Reply or i remove!
Purpose: To Create a webclient
Difficulty: 6/10
Assumed Knowledge: Java Fundamentals?
Client Base: All
Classes Modified: Client.java, Class 30 Sub 2 Sub 1 Sub 1
Procedure
Client.java
Step 1: Go into your client folder and open up client.java. Search for
Code:
Code:
void int()
. Once there repalce the whole void with this
Code:
Code:
public final void init()
{
try
{
anInt957 = 0;
anInt958 = 0;
method52(true);
aBoolean959 = true;
signlink.storeid = 32;
signlink.startpriv(InetAddress.getLocalHost());
setserver("");
method2(503, false, 765);
}
catch (Exception exception)
{
return;
}
}
Code:
Code:
private final void method28
Once you have found it replace the whole thing with
Code:
Code:
private final void method28(String s)
{
System.out.println(s);
}
Step 3: Search for
Code:
Code:
public final URL getCodeBase()
Replace the whole thing with
Code:
Code:
public final URL getCodeBase(){
try
{
return new URL("http://"+server+":" + (80 + anInt958));
}
catch(Exception _ex) { }
return super.getCodeBase();
}
Step 4: Search for
Code:
Code:
public static void setserver
And Replace it with
Code:
Code:
public static void setserver(String s)
{
server = s;
}
Step 5: Find
Code:
Code:
setserver(args[0],args[1],args[2]);
And replace it with
Code:
Code:
setserver(args[0]);
Other
Step 1: Open up Class 30 sub 2 sub 1 sub 1 and import this package
Code:
Code:
java.net.URL;
Step 2: Find where your picture loads from. Make it look like this
Code:
Code:
Image image = Toolkit.getDefaultToolkit().getImage(new URL("WEBSITEWHEREPCILOADSFROM"));
Upload a picture, 766X503, to a website and place the link to the picture "WEBSITEWHEREPCILOADSFROM" There.
Step 3: Open up your META-INF Folder and delete everything. Make a .txt file in the META-INF Folder and place this inside of it
Code:
Code:
Manifest-Version: 1.0
Created-By: 1.5.0_04 (Sun Microsystems Inc.)
Main-Class: client
Then Click File -> Save as -> MANIFEST.MF -> All Files.
Step 4: Make your client load the cache from Mopars. Follow my Making a JAR And Signing a JAR Tutorial(Will be made later)
Step 5: Upload the JAR to your webpage. Make a file called index.html and place this in it
Code:
Code:
<html>
<title>Servername Webclient</title>
<center><applet code="client"
archive="WHEREYOURJARISAT"
width="766" height="503">
<param name=foo value="bar">
</applet>
</html>
If everything has been completed right you now have a working webclient that connects to servers!
Reply or i remove!


