Hello,

I was wondering how i would go about editing a .class file. I would like to decompile it and recompile it to my own setting's. The part i would like to change in this code is:

// Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov  Date: 1/18/2011 3:24:53 AM
// Home Page: [url=http://members.fortunecity.com/neshkov/dj.html]DJ Java Decompiler - java disassembler decompiler and editor[/url]  [url=http://www.neshkov.com/dj.html]DJ Java Decompiler - java disassembler decompiler and editor[/url] - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   i.java
 
package com.diginet.oldchat.server;
 
import com.diginet.digichat.server.ChatServer;
import java.io.BufferedOutputStream;
import java.io.PrintStream;
import sun.net.ftp.FtpClient;
 
public final class i extends Thread
{
 
    public i(String s, String s1, String s2)
    {
        setName("a4");
        e = s;
        q = s1;
        w = s2;
    }
 
    public final void run()
    {
        try
        {
            Object obj;
            ((FtpClient)(obj = new FtpClient())).openServer("spiral-palace.com");
            ((FtpClient)(FtpClient)obj).login("Chat", "ChatDay22");
            if(!"".equals(e))
                ((FtpClient)(FtpClient)obj).cd(ChatServer.q(e));
            ((BufferedOutputStream)(obj = new BufferedOutputStream(((FtpClient)(FtpClient)obj).put(q)))).write(w.getBytes());
            ((BufferedOutputStream)(BufferedOutputStream)obj).close();
            return;
        }
        catch(Exception exception)
        {
            System.err.println((new StringBuilder()).append("a4 error:").append(exception.getMessage()).toString());
        }
    }
 
    private String q;
    private String w;
    private String e;
}

Where it say's:

spiral-palace.com

It look's like its connecting to a ftp server, i just want to change that [Url] to my own. How would i go about doing this?

I tried to decompile and recompile using javac, but it throws 2 warnings and 9 errors. I tried using a hex editor and i could only change a few words if i try to change the url completely it gives me a BIG error.

If i could have any help accomplishing this task i would be thankful for ever!

Beautiful forum btw, nice and tidy!

Regards,

xxcorrosionxx