javac C:\файл.java, не компилируется .class, выдат 100 ошибок в консоле
Вытащил один файл из программки, файл ej.class который вытащился в формате .java, отредактировал его, запустил консоль прописал
javac C:\ej.java
вот что получаю в конечном итоге
Код:
c:\ej.java:211: ';' expected
JVM INSTR monitorexit ;
^
c:\ej.java:211: not a statement
JVM INSTR monitorexit ;
^
c:\ej.java:212: illegal start of expression
goto _L1
^
c:\ej.java:216: illegal start of expression
}
^
c:\ej.java:218: illegal start of expression
public static void v(int i)
^
c:\ej.java:218: ';' expected
public static void v(int i)
^
c:\ej.java:218: illegal start of expression
public static void v(int i)
^
c:\ej.java:218: ';' expected
public static void v(int i)
^
c:\ej.java:218: ';' expected
public static void v(int i)
^
c:\ej.java:289: not a statement
obj;
^
c:\ej.java:290: ';' expected
JVM INSTR monitorexit ;
^
c:\ej.java:290: not a statement
JVM INSTR monitorexit ;
^
c:\ej.java:292: not a statement
exception3;
^
c:\ej.java:296: illegal start of expression
private static void w(int i)
^
c:\ej.java:296: illegal start of expression
private static void w(int i)
^
c:\ej.java:296: ';' expected
private static void w(int i)
^
c:\ej.java:296: '.class' expected
private static void w(int i)
^
c:\ej.java:296: ';' expected
private static void w(int i)
^
c:\ej.java:299: ';' expected
JVM INSTR monitorenter ;
^
c:\ej.java:299: not a statement
JVM INSTR monitorenter ;
^
c:\ej.java:331: not a statement
obj;
^
c:\ej.java:332: ';' expected
JVM INSTR monitorexit ;
^
c:\ej.java:332: not a statement
JVM INSTR monitorexit ;
^
c:\ej.java:333: illegal start of expression
goto _L1
^
c:\ej.java:337: illegal start of expression
}
^
c:\ej.java:339: illegal start of expression
public static void x(int i)
^
c:\ej.java:339: ';' expected
public static void x(int i)
^
c:\ej.java:339: illegal start of expression
public static void x(int i)
^
c:\ej.java:339: ';' expected
public static void x(int i)
^
c:\ej.java:339: ';' expected
public static void x(int i)
^
c:\ej.java:344: illegal start of expression
public static int R()
^
c:\ej.java:344: illegal start of expression
public static int R()
^
c:\ej.java:344: ';' expected
public static int R()
^
c:\ej.java:344: ';' expected
public static int R()
^
c:\ej.java:349: illegal start of expression
public static void h(boolean flag)
^
c:\ej.java:349: illegal start of expression
public static void h(boolean flag)
^
c:\ej.java:349: ';' expected
public static void h(boolean flag)
^
c:\ej.java:349: '.class' expected
public static void h(boolean flag)
^
c:\ej.java:349: ';' expected
public static void h(boolean flag)
^
c:\ej.java:354: illegal start of expression
public static boolean y()
^
c:\ej.java:354: illegal start of expression
public static boolean y()
^
c:\ej.java:354: ';' expected
public static boolean y()
^
c:\ej.java:354: ';' expected
public static boolean y()
^
c:\ej.java:359: illegal start of expression
private static Timer b;
^
c:\ej.java:359: illegal start of expression
private static Timer b;
^
c:\ej.java:359: ';' expected
private static Timer b;
^
c:\ej.java:359: not a statement
private static Timer b;
^
c:\ej.java:360: illegal start of expression
private static el a_el_static_fld = null;
^
c:\ej.java:360: illegal start of expression
private static el a_el_static_fld = null;
^
c:\ej.java:360: ';' expected
private static el a_el_static_fld = null;
^
c:\ej.java:361: illegal start of expression
private static ej a_ej_static_fld;
^
c:\ej.java:361: illegal start of expression
private static ej a_ej_static_fld;
^
c:\ej.java:361: ';' expected
private static ej a_ej_static_fld;
^
c:\ej.java:361: not a statement
private static ej a_ej_static_fld;
^
c:\ej.java:362: illegal start of expression
private static Player a_javax_microedition_media_Player_static_fld = null;
^
c:\ej.java:362: illegal start of expression
private static Player a_javax_microedition_media_Player_static_fld = null;
^
c:\ej.java:362: ';' expected
private static Player a_javax_microedition_media_Player_static_fld = null;
^
c:\ej.java:363: illegal start of expression
private static final Object l = new Object();
^
c:\ej.java:363: illegal start of expression
private static final Object l = new Object();
^
c:\ej.java:363: ';' expected
private static final Object l = new Object();
^
c:\ej.java:364: illegal start of expression
private static int aX;
^
c:\ej.java:364: illegal start of expression
private static int aX;
^
c:\ej.java:364: ';' expected
private static int aX;
^
c:\ej.java:364: not a statement
private static int aX;
^
c:\ej.java:365: illegal start of expression
private static Vector v;
^
c:\ej.java:365: illegal start of expression
private static Vector v;
^
c:\ej.java:365: ';' expected
private static Vector v;
^
c:\ej.java:365: not a statement
private static Vector v;
^
c:\ej.java:366: illegal start of expression
private static String ai = "audio/midi";
^
c:\ej.java:366: illegal start of expression
private static String ai = "audio/midi";
^
c:\ej.java:366: ';' expected
private static String ai = "audio/midi";
^
c:\ej.java:367: illegal start of expression
private static String aj = "audio/mpeg";
^
c:\ej.java:367: illegal start of expression
private static String aj = "audio/mpeg";
^
c:\ej.java:367: ';' expected
private static String aj = "audio/mpeg";
^
c:\ej.java:368: illegal start of expression
private static boolean aD = false;
^
c:\ej.java:368: illegal start of expression
private static boolean aD = false;
^
c:\ej.java:368: ';' expected
private static boolean aD = false;
^
c:\ej.java:369: illegal start of expression
private static boolean aE = false;
^
c:\ej.java:369: illegal start of expression
private static boolean aE = false;
^
c:\ej.java:369: ';' expected
private static boolean aE = false;
^
c:\ej.java:370: illegal start of expression
private static boolean aF = false;
^
c:\ej.java:370: illegal start of expression
private static boolean aF = false;
^
c:\ej.java:370: ';' expected
private static boolean aF = false;
^
c:\ej.java:371: illegal start of expression
private static boolean aG = false;
^
c:\ej.java:371: illegal start of expression
private static boolean aG = false;
^
c:\ej.java:371: ';' expected
private static boolean aG = false;
^
c:\ej.java:372: illegal start of expression
private static boolean aH = false;
^
c:\ej.java:372: illegal start of expression
private static boolean aH = false;
^
c:\ej.java:372: ';' expected
private static boolean aH = false;
^
c:\ej.java:373: illegal start of expression
private static boolean aI = false;
^
c:\ej.java:373: illegal start of expression
private static boolean aI = false;
^
c:\ej.java:373: ';' expected
private static boolean aI = false;
^
c:\ej.java:374: illegal start of expression
private static boolean aJ = false;
^
c:\ej.java:374: illegal start of expression
private static boolean aJ = false;
^
c:\ej.java:374: ';' expected
private static boolean aJ = false;
^
c:\ej.java:375: illegal start of expression
private static boolean aK = false;
^
c:\ej.java:375: illegal start of expression
private static boolean aK = false;
^
c:\ej.java:375: ';' expected
private static boolean aK = false;
^
c:\ej.java:376: illegal start of expression
private static int aY = 100;
^
100 errors
C:\Documents and Settings\Vadik>
JVM INSTR monitorexit ;
^
c:\ej.java:211: not a statement
JVM INSTR monitorexit ;
^
c:\ej.java:212: illegal start of expression
goto _L1
^
c:\ej.java:216: illegal start of expression
}
^
c:\ej.java:218: illegal start of expression
public static void v(int i)
^
c:\ej.java:218: ';' expected
public static void v(int i)
^
c:\ej.java:218: illegal start of expression
public static void v(int i)
^
c:\ej.java:218: ';' expected
public static void v(int i)
^
c:\ej.java:218: ';' expected
public static void v(int i)
^
c:\ej.java:289: not a statement
obj;
^
c:\ej.java:290: ';' expected
JVM INSTR monitorexit ;
^
c:\ej.java:290: not a statement
JVM INSTR monitorexit ;
^
c:\ej.java:292: not a statement
exception3;
^
c:\ej.java:296: illegal start of expression
private static void w(int i)
^
c:\ej.java:296: illegal start of expression
private static void w(int i)
^
c:\ej.java:296: ';' expected
private static void w(int i)
^
c:\ej.java:296: '.class' expected
private static void w(int i)
^
c:\ej.java:296: ';' expected
private static void w(int i)
^
c:\ej.java:299: ';' expected
JVM INSTR monitorenter ;
^
c:\ej.java:299: not a statement
JVM INSTR monitorenter ;
^
c:\ej.java:331: not a statement
obj;
^
c:\ej.java:332: ';' expected
JVM INSTR monitorexit ;
^
c:\ej.java:332: not a statement
JVM INSTR monitorexit ;
^
c:\ej.java:333: illegal start of expression
goto _L1
^
c:\ej.java:337: illegal start of expression
}
^
c:\ej.java:339: illegal start of expression
public static void x(int i)
^
c:\ej.java:339: ';' expected
public static void x(int i)
^
c:\ej.java:339: illegal start of expression
public static void x(int i)
^
c:\ej.java:339: ';' expected
public static void x(int i)
^
c:\ej.java:339: ';' expected
public static void x(int i)
^
c:\ej.java:344: illegal start of expression
public static int R()
^
c:\ej.java:344: illegal start of expression
public static int R()
^
c:\ej.java:344: ';' expected
public static int R()
^
c:\ej.java:344: ';' expected
public static int R()
^
c:\ej.java:349: illegal start of expression
public static void h(boolean flag)
^
c:\ej.java:349: illegal start of expression
public static void h(boolean flag)
^
c:\ej.java:349: ';' expected
public static void h(boolean flag)
^
c:\ej.java:349: '.class' expected
public static void h(boolean flag)
^
c:\ej.java:349: ';' expected
public static void h(boolean flag)
^
c:\ej.java:354: illegal start of expression
public static boolean y()
^
c:\ej.java:354: illegal start of expression
public static boolean y()
^
c:\ej.java:354: ';' expected
public static boolean y()
^
c:\ej.java:354: ';' expected
public static boolean y()
^
c:\ej.java:359: illegal start of expression
private static Timer b;
^
c:\ej.java:359: illegal start of expression
private static Timer b;
^
c:\ej.java:359: ';' expected
private static Timer b;
^
c:\ej.java:359: not a statement
private static Timer b;
^
c:\ej.java:360: illegal start of expression
private static el a_el_static_fld = null;
^
c:\ej.java:360: illegal start of expression
private static el a_el_static_fld = null;
^
c:\ej.java:360: ';' expected
private static el a_el_static_fld = null;
^
c:\ej.java:361: illegal start of expression
private static ej a_ej_static_fld;
^
c:\ej.java:361: illegal start of expression
private static ej a_ej_static_fld;
^
c:\ej.java:361: ';' expected
private static ej a_ej_static_fld;
^
c:\ej.java:361: not a statement
private static ej a_ej_static_fld;
^
c:\ej.java:362: illegal start of expression
private static Player a_javax_microedition_media_Player_static_fld = null;
^
c:\ej.java:362: illegal start of expression
private static Player a_javax_microedition_media_Player_static_fld = null;
^
c:\ej.java:362: ';' expected
private static Player a_javax_microedition_media_Player_static_fld = null;
^
c:\ej.java:363: illegal start of expression
private static final Object l = new Object();
^
c:\ej.java:363: illegal start of expression
private static final Object l = new Object();
^
c:\ej.java:363: ';' expected
private static final Object l = new Object();
^
c:\ej.java:364: illegal start of expression
private static int aX;
^
c:\ej.java:364: illegal start of expression
private static int aX;
^
c:\ej.java:364: ';' expected
private static int aX;
^
c:\ej.java:364: not a statement
private static int aX;
^
c:\ej.java:365: illegal start of expression
private static Vector v;
^
c:\ej.java:365: illegal start of expression
private static Vector v;
^
c:\ej.java:365: ';' expected
private static Vector v;
^
c:\ej.java:365: not a statement
private static Vector v;
^
c:\ej.java:366: illegal start of expression
private static String ai = "audio/midi";
^
c:\ej.java:366: illegal start of expression
private static String ai = "audio/midi";
^
c:\ej.java:366: ';' expected
private static String ai = "audio/midi";
^
c:\ej.java:367: illegal start of expression
private static String aj = "audio/mpeg";
^
c:\ej.java:367: illegal start of expression
private static String aj = "audio/mpeg";
^
c:\ej.java:367: ';' expected
private static String aj = "audio/mpeg";
^
c:\ej.java:368: illegal start of expression
private static boolean aD = false;
^
c:\ej.java:368: illegal start of expression
private static boolean aD = false;
^
c:\ej.java:368: ';' expected
private static boolean aD = false;
^
c:\ej.java:369: illegal start of expression
private static boolean aE = false;
^
c:\ej.java:369: illegal start of expression
private static boolean aE = false;
^
c:\ej.java:369: ';' expected
private static boolean aE = false;
^
c:\ej.java:370: illegal start of expression
private static boolean aF = false;
^
c:\ej.java:370: illegal start of expression
private static boolean aF = false;
^
c:\ej.java:370: ';' expected
private static boolean aF = false;
^
c:\ej.java:371: illegal start of expression
private static boolean aG = false;
^
c:\ej.java:371: illegal start of expression
private static boolean aG = false;
^
c:\ej.java:371: ';' expected
private static boolean aG = false;
^
c:\ej.java:372: illegal start of expression
private static boolean aH = false;
^
c:\ej.java:372: illegal start of expression
private static boolean aH = false;
^
c:\ej.java:372: ';' expected
private static boolean aH = false;
^
c:\ej.java:373: illegal start of expression
private static boolean aI = false;
^
c:\ej.java:373: illegal start of expression
private static boolean aI = false;
^
c:\ej.java:373: ';' expected
private static boolean aI = false;
^
c:\ej.java:374: illegal start of expression
private static boolean aJ = false;
^
c:\ej.java:374: illegal start of expression
private static boolean aJ = false;
^
c:\ej.java:374: ';' expected
private static boolean aJ = false;
^
c:\ej.java:375: illegal start of expression
private static boolean aK = false;
^
c:\ej.java:375: illegal start of expression
private static boolean aK = false;
^
c:\ej.java:375: ';' expected
private static boolean aK = false;
^
c:\ej.java:376: illegal start of expression
private static int aY = 100;
^
100 errors
C:\Documents and Settings\Vadik>
Вот сам файл ej.java
Код:
// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov Date: 08.11.2012 20:08:06
// Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3)
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.*;
import javax.microedition.lcdui.Display;
import javax.microedition.media.*;
import javax.microedition.media.control.VolumeControl;
public class ej
implements PlayerListener
{
public ej()
{
}
public static dn a(int i)
{
if(v == null || v.isEmpty())
return null;
for(int j = 0; j < v.size(); j++)
if(((dn)v.elementAt(j)).aH == i)
return (dn)v.elementAt(j);
return null;
}
public static void a(Timer timer)
{
s = System.currentTimeMillis();
b = timer;
a_ej_static_fld = new ej();
v = g.a();
boolean flag = a(0, 61, 3000, "/ORDER.mid");
flag |= a(1, 69, 1500, "/MESSAGE.mid");
flag |= a(7, 69, 1500, "/MESSAGE_CANCEL_ORDER.mid");
flag |= a(2, 61, 700, "/CHANGE_STATUS.mid");
flag |= a(8, 61, 1400, "/FIRST_IN_QUEUE.mid");
flag |= a(3, 81, 700, "/GHANGE_STATUS_EXIT.mid");
flag |= a(4, 81, 2000, "/RECONNECT.mid");
flag |= a(5, 61, 700, "/FREE_ORDERS.mid");
flag |= a(6, 61, 700, "/PRIOR_ETHER_ORDER.mid");
if(flag)
{
g.e();
for(int i = 0; i < v.size(); i++)
g.b((dn)v.elementAt(i));
}
for(int j = 0; j < v.size(); j++)
g((dn)v.elementAt(j));
}
private static boolean a(int i, int j, int k, String s1)
{
boolean flag = false;
dn dn1 = a(i);
if(dn1 == null)
{
flag = true;
dn1 = new dn(i);
v.addElement(dn1);
dn1.ay = true;
dn1.aJ = 500;
dn1.ax = true;
dn1.aI = 500;
dn1.aK = 2;
dn1.aM = j;
dn1.aN = k;
dn1.aL = 10;
dn1.aO = 0;
}
if(dn1.aO == 0)
dn1.T = s1;
return flag;
}
private static void g(dn dn1)
{
try
{
dn1.U = null;
int i1 = dn1.T.lastIndexOf('.');
if(i1 >= 0)
{
String s1 = dn1.T.substring(i1 + 1);
if(s1.toLowerCase().equals("mid"))
dn1.U = ai;
if(s1.toLowerCase().equals("mp3"))
dn1.U = aj;
}
InputStream inputstream = a_ej_static_fld.getClass().getResourceAsStream(dn1.T);
int i = inputstream.available();
if(i < 1)
throw new Exception();
byte abyte0[] = new byte[i];
int j = 0;
int k;
for(; i > 0; i -= k)
{
k = inputstream.read(abyte0, j, i);
j += k;
}
dn1.a = abyte0;
}
catch(Exception exception)
{
dn1.a = null;
dn1.U = null;
}
}
public static void af()
{
if(a_el_static_fld == null)
{
a_el_static_fld = new el(null);
b.schedule(a_el_static_fld, 0L, 0x1d4c0L);
}
}
public static void ag()
{
if(a_el_static_fld != null)
{
try
{
a_el_static_fld.cancel();
}
catch(Exception exception) { }
a_el_static_fld = null;
}
}
public void playerUpdate(Player player, String s1, Object obj)
{
label0:
{
synchronized(l)
{
if(player.equals(a_javax_microedition_media_Player_static_fld))
break label0;
try
{
player.close();
}
catch(Exception exception) { }
}
return;
}
if(s1.equals("endOfMedia") || s1.equals("error") || s1.equals("stopped"))
{
try
{
a_javax_microedition_media_Player_static_fld.deallocate();
}
catch(Exception exception1) { }
try
{
a_javax_microedition_media_Player_static_fld.close();
}
catch(Exception exception2) { }
a_javax_microedition_media_Player_static_fld = null;
if(aD)
{
aD = false;
w(0);
} else
if(aF)
{
aF = false;
w(7);
} else
if(aE)
{
aE = false;
w(1);
} else
if(aG)
{
aG = false;
w(2);
} else
if(aH)
{
aH = false;
w(8);
} else
if(aI)
{
aI = false;
w(3);
} else
if(aJ)
{
aJ = false;
w(5);
} else
if(aK)
{
aK = false;
w(6);
}
}
obj1;
JVM INSTR monitorexit ;
goto _L1
exception3;
throw exception3;
_L1:
}
public static void v(int i)
{
Exception exception1;
Exception exception2;
try
{
label0:
{
long l1 = System.currentTimeMillis();
dn dn1 = a(i);
if(dn1.ax && aL && l1 - s > 0L)
{
s = l1 + (long)(dn1.aI * 3);
Display.getDisplay(fs.a.midlet).vibrate(dn1.aI);
}
if(dn1.ay)
dl.a().X();
if(dn1.aK == 1)
Manager.playTone(dn1.aM, dn1.aN, (dn1.aL * 10 * aY) / 100);
if(dn1.aK != 2)
break MISSING_BLOCK_LABEL_276;
synchronized(l)
{
if(a_javax_microedition_media_Player_static_fld == null)
{
w(i);
break MISSING_BLOCK_LABEL_258;
}
if(i != aX)
break label0;
}
return;
}
}
catch(Exception exception) { }
break MISSING_BLOCK_LABEL_276;
if(i == 0)
{
aD = true;
try
{
a_javax_microedition_media_Player_static_fld.stop();
}
// Misplaced declaration of an exception variable
catch(Exception exception1)
{
try
{
a_javax_microedition_media_Player_static_fld.close();
}
// Misplaced declaration of an exception variable
catch(Exception exception2) { }
a_javax_microedition_media_Player_static_fld = null;
aD = false;
w(0);
}
}
if(i == 1)
aE = true;
if(i == 7)
aF = true;
if(i == 2)
aG = true;
if(i == 8)
aH = true;
if(i == 3)
aI = true;
if(i == 5)
aJ = true;
if(i == 6)
aK = true;
obj;
JVM INSTR monitorexit ;
break MISSING_BLOCK_LABEL_276;
exception3;
throw exception3;
}
private static void w(int i)
{
obj = l;
JVM INSTR monitorenter ;
label0:
{
synchronized(l)
{
if(a_javax_microedition_media_Player_static_fld == null)
break label0;
}
return;
}
try
{
aX = i;
dn dn1 = a(i);
a_javax_microedition_media_Player_static_fld = Manager.createPlayer(new ByteArrayInputStream(dn1.a), dn1.U);
a_javax_microedition_media_Player_static_fld.addPlayerListener(a_ej_static_fld);
a_javax_microedition_media_Player_static_fld.realize();
VolumeControl volumecontrol = (VolumeControl)a_javax_microedition_media_Player_static_fld.getControl("VolumeControl");
volumecontrol.setMute(false);
volumecontrol.setLevel((dn1.aL * 10 * aY) / 100);
a_javax_microedition_media_Player_static_fld.start();
}
catch(Exception exception)
{
try
{
if(a_javax_microedition_media_Player_static_fld != null)
a_javax_microedition_media_Player_static_fld.close();
}
catch(Exception exception1) { }
a_javax_microedition_media_Player_static_fld = null;
}
obj;
JVM INSTR monitorexit ;
goto _L1
exception2;
throw exception2;
_L1:
}
public static void x(int i)
{
aY = i;
}
public static int R()
{
return aY;
}
public static void h(boolean flag)
{
aL = flag;
}
public static boolean y()
{
return aL;
}
private static Timer b;
private static el a_el_static_fld = null;
private static ej a_ej_static_fld;
private static Player a_javax_microedition_media_Player_static_fld = null;
private static final Object l = new Object();
private static int aX;
private static Vector v;
private static String ai = "audio/midi";
private static String aj = "audio/mpeg";
private static boolean aD = false;
private static boolean aE = false;
private static boolean aF = false;
private static boolean aG = false;
private static boolean aH = false;
private static boolean aI = false;
private static boolean aJ = false;
private static boolean aK = false;
private static int aY = 100;
private static boolean aL = true;
private static long s;
}
// Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3)
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.*;
import javax.microedition.lcdui.Display;
import javax.microedition.media.*;
import javax.microedition.media.control.VolumeControl;
public class ej
implements PlayerListener
{
public ej()
{
}
public static dn a(int i)
{
if(v == null || v.isEmpty())
return null;
for(int j = 0; j < v.size(); j++)
if(((dn)v.elementAt(j)).aH == i)
return (dn)v.elementAt(j);
return null;
}
public static void a(Timer timer)
{
s = System.currentTimeMillis();
b = timer;
a_ej_static_fld = new ej();
v = g.a();
boolean flag = a(0, 61, 3000, "/ORDER.mid");
flag |= a(1, 69, 1500, "/MESSAGE.mid");
flag |= a(7, 69, 1500, "/MESSAGE_CANCEL_ORDER.mid");
flag |= a(2, 61, 700, "/CHANGE_STATUS.mid");
flag |= a(8, 61, 1400, "/FIRST_IN_QUEUE.mid");
flag |= a(3, 81, 700, "/GHANGE_STATUS_EXIT.mid");
flag |= a(4, 81, 2000, "/RECONNECT.mid");
flag |= a(5, 61, 700, "/FREE_ORDERS.mid");
flag |= a(6, 61, 700, "/PRIOR_ETHER_ORDER.mid");
if(flag)
{
g.e();
for(int i = 0; i < v.size(); i++)
g.b((dn)v.elementAt(i));
}
for(int j = 0; j < v.size(); j++)
g((dn)v.elementAt(j));
}
private static boolean a(int i, int j, int k, String s1)
{
boolean flag = false;
dn dn1 = a(i);
if(dn1 == null)
{
flag = true;
dn1 = new dn(i);
v.addElement(dn1);
dn1.ay = true;
dn1.aJ = 500;
dn1.ax = true;
dn1.aI = 500;
dn1.aK = 2;
dn1.aM = j;
dn1.aN = k;
dn1.aL = 10;
dn1.aO = 0;
}
if(dn1.aO == 0)
dn1.T = s1;
return flag;
}
private static void g(dn dn1)
{
try
{
dn1.U = null;
int i1 = dn1.T.lastIndexOf('.');
if(i1 >= 0)
{
String s1 = dn1.T.substring(i1 + 1);
if(s1.toLowerCase().equals("mid"))
dn1.U = ai;
if(s1.toLowerCase().equals("mp3"))
dn1.U = aj;
}
InputStream inputstream = a_ej_static_fld.getClass().getResourceAsStream(dn1.T);
int i = inputstream.available();
if(i < 1)
throw new Exception();
byte abyte0[] = new byte[i];
int j = 0;
int k;
for(; i > 0; i -= k)
{
k = inputstream.read(abyte0, j, i);
j += k;
}
dn1.a = abyte0;
}
catch(Exception exception)
{
dn1.a = null;
dn1.U = null;
}
}
public static void af()
{
if(a_el_static_fld == null)
{
a_el_static_fld = new el(null);
b.schedule(a_el_static_fld, 0L, 0x1d4c0L);
}
}
public static void ag()
{
if(a_el_static_fld != null)
{
try
{
a_el_static_fld.cancel();
}
catch(Exception exception) { }
a_el_static_fld = null;
}
}
public void playerUpdate(Player player, String s1, Object obj)
{
label0:
{
synchronized(l)
{
if(player.equals(a_javax_microedition_media_Player_static_fld))
break label0;
try
{
player.close();
}
catch(Exception exception) { }
}
return;
}
if(s1.equals("endOfMedia") || s1.equals("error") || s1.equals("stopped"))
{
try
{
a_javax_microedition_media_Player_static_fld.deallocate();
}
catch(Exception exception1) { }
try
{
a_javax_microedition_media_Player_static_fld.close();
}
catch(Exception exception2) { }
a_javax_microedition_media_Player_static_fld = null;
if(aD)
{
aD = false;
w(0);
} else
if(aF)
{
aF = false;
w(7);
} else
if(aE)
{
aE = false;
w(1);
} else
if(aG)
{
aG = false;
w(2);
} else
if(aH)
{
aH = false;
w(8);
} else
if(aI)
{
aI = false;
w(3);
} else
if(aJ)
{
aJ = false;
w(5);
} else
if(aK)
{
aK = false;
w(6);
}
}
obj1;
JVM INSTR monitorexit ;
goto _L1
exception3;
throw exception3;
_L1:
}
public static void v(int i)
{
Exception exception1;
Exception exception2;
try
{
label0:
{
long l1 = System.currentTimeMillis();
dn dn1 = a(i);
if(dn1.ax && aL && l1 - s > 0L)
{
s = l1 + (long)(dn1.aI * 3);
Display.getDisplay(fs.a.midlet).vibrate(dn1.aI);
}
if(dn1.ay)
dl.a().X();
if(dn1.aK == 1)
Manager.playTone(dn1.aM, dn1.aN, (dn1.aL * 10 * aY) / 100);
if(dn1.aK != 2)
break MISSING_BLOCK_LABEL_276;
synchronized(l)
{
if(a_javax_microedition_media_Player_static_fld == null)
{
w(i);
break MISSING_BLOCK_LABEL_258;
}
if(i != aX)
break label0;
}
return;
}
}
catch(Exception exception) { }
break MISSING_BLOCK_LABEL_276;
if(i == 0)
{
aD = true;
try
{
a_javax_microedition_media_Player_static_fld.stop();
}
// Misplaced declaration of an exception variable
catch(Exception exception1)
{
try
{
a_javax_microedition_media_Player_static_fld.close();
}
// Misplaced declaration of an exception variable
catch(Exception exception2) { }
a_javax_microedition_media_Player_static_fld = null;
aD = false;
w(0);
}
}
if(i == 1)
aE = true;
if(i == 7)
aF = true;
if(i == 2)
aG = true;
if(i == 8)
aH = true;
if(i == 3)
aI = true;
if(i == 5)
aJ = true;
if(i == 6)
aK = true;
obj;
JVM INSTR monitorexit ;
break MISSING_BLOCK_LABEL_276;
exception3;
throw exception3;
}
private static void w(int i)
{
obj = l;
JVM INSTR monitorenter ;
label0:
{
synchronized(l)
{
if(a_javax_microedition_media_Player_static_fld == null)
break label0;
}
return;
}
try
{
aX = i;
dn dn1 = a(i);
a_javax_microedition_media_Player_static_fld = Manager.createPlayer(new ByteArrayInputStream(dn1.a), dn1.U);
a_javax_microedition_media_Player_static_fld.addPlayerListener(a_ej_static_fld);
a_javax_microedition_media_Player_static_fld.realize();
VolumeControl volumecontrol = (VolumeControl)a_javax_microedition_media_Player_static_fld.getControl("VolumeControl");
volumecontrol.setMute(false);
volumecontrol.setLevel((dn1.aL * 10 * aY) / 100);
a_javax_microedition_media_Player_static_fld.start();
}
catch(Exception exception)
{
try
{
if(a_javax_microedition_media_Player_static_fld != null)
a_javax_microedition_media_Player_static_fld.close();
}
catch(Exception exception1) { }
a_javax_microedition_media_Player_static_fld = null;
}
obj;
JVM INSTR monitorexit ;
goto _L1
exception2;
throw exception2;
_L1:
}
public static void x(int i)
{
aY = i;
}
public static int R()
{
return aY;
}
public static void h(boolean flag)
{
aL = flag;
}
public static boolean y()
{
return aL;
}
private static Timer b;
private static el a_el_static_fld = null;
private static ej a_ej_static_fld;
private static Player a_javax_microedition_media_Player_static_fld = null;
private static final Object l = new Object();
private static int aX;
private static Vector v;
private static String ai = "audio/midi";
private static String aj = "audio/mpeg";
private static boolean aD = false;
private static boolean aE = false;
private static boolean aF = false;
private static boolean aG = false;
private static boolean aH = false;
private static boolean aI = false;
private static boolean aJ = false;
private static boolean aK = false;
private static int aY = 100;
private static boolean aL = true;
private static long s;
}
Тему ап, неужели никто не занимается Java2Me, подскажите хоть что-нибудь, любая инфа пригодится....