PLZZZZZ hlp me don't know any thing in java and need a favor
hi u all
i use this java application called "yamee" as a yahoo messenger in my mobile and recently the application stopped working cause yahoo changed the host that messnger should connect to (i know the new host) so as a newbie i unzipped the .jar file and start to search in the .class files to see which one has the host information and i found it and convert it to .java and made the change but i cant get it back into .class file and that what i need from u plz
this is the code in the java file that i need to convert into a class file
Quote:
import java.io.*;
import javax.microedition.io.*;
public final class r
{
private r(String s, int i)
{
e = false;
c = s;
d = i;
e = true;
}
public r()
{
this("cn.scs.msg.yahoo.com", 5050);
e = false;
}
public final void a()
throws IOException, ap
{
if(e)
{
f = (StreamConnection)Connector.open("socket://" + c + ":" + d);
} else
{
String as[] = {
"cn.scs.msg.yahoo.com", "cn.scsa.msg.yahoo.com"
};
int ai[] = {
5050, 23, 25, 80
};
int i = 0;
int j = 0;
while(f == null)
try
{
c = as[j];
d = ai[i];
f = (StreamConnection)Connector.open("socket://" + c + ":" + d);
}
catch(SecurityException _ex)
{
throw new ap("Connection failed!\nPlease check the connection settings");
}
catch(Exception _ex)
{
f = null;
if(++i >= ai.length)
{
j++;
i = 0;
if(j >= as.length)
throw new ap("Sorry, there was a problem in connecting");
}
}
}
g = new k(f.openInputStream());
h = f.openDataOutputStream();
}
public final void b()
throws IOException, InterruptedIOException
{
if(f != null)
f.close();
f = null;
}
public final void a(ab ab1, int i, long l, long l1)
throws IOException
{
byte abyte0[] = ab1.a();
synchronized(h)
{
h.write(a, 0, 4);
h.write(b, 0, 4);
h.writeShort(abyte0.length & 0xffff);
h.writeShort(i & 0xffff);
h.writeInt((int)(l & -1L));
h.writeInt((int)(l1 & -1L));
h.write(abyte0, 0, abyte0.length);
h.flush();
}
}
public final az c()
throws IOException, InterruptedIOException
{
return g.a();
}
public static String[] a(az az1)
{
String as[] = new String[3];
for(int i = 0; i < as.length; i++)
{
String s;
if((s = az1.a("59", i)) == null)
break;
if(s.indexOf(";") >= 0)
s = s.substring(0, s.indexOf(";"));
switch(s.charAt(0))
{
case 89: // 'Y'
as[0] = "Y=" + s.substring(2);
break;
case 84: // 'T'
as[1] = "T=" + s.substring(2);
break;
case 67: // 'C'
as[2] = "C=" + s.substring(2);
break;
default:
System.err.println("What c: " + s);
break;
}
}
return as;
}
public static final byte a[] = {
89, 77, 83, 71
};
public static final byte b[] = {
0, 13, 0, 0
};
public String c;
public int d;
private boolean e;
private StreamConnection f;
private k g;
private DataOutputStream h;
}
if u need the orginal .class file or even the whole jar file just tell me
thank u