Results 1 to 5 of 5
  1. #1
    capacitator is offline Member
    Join Date
    Aug 2007
    Posts
    2
    Rep Power
    0

    Exclamation compiling trouble

    i decompiled a class file, but now when i try and compile it, it says there are 100 errors. the codes below, anyone got any ideas on how i can compile it?
    ive only changed a break tag to a return tag, and even when i try and compile the original without changing anythin it still has 100 errors.

    I know the codes not wrong because it works as part of an application on my phone. where am i going wrong? im trying to use javac to compile.

    Java Code:
    package org.trifinite.blooover2;
    
    import java.io.*;
    import java.util.Vector;
    import javax.bluetooth.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    import javax.microedition.rms.RecordStore;
    import org.trifinite.common.b;
    import org.trifinite.common.c;
    import org.trifinite.common.g;
    
    // Referenced classes of package org.trifinite.blooover2:
    //            a, b, c, d, 
    //            e, g, j, k, 
    //            l, m, n, o
    
    public class Blooover2 extends MIDlet
        implements CommandListener {
        class m
            implements DiscoveryListener {
    
            private final Blooover2 a;
    
            public final void deviceDiscovered(RemoteDevice remotedevice, DeviceClass deviceclass) {
                org.trifinite.blooover2.b b1;
                (b1 = new org.trifinite.blooover2.b()).c = remotedevice;
                b1.d = deviceclass;
                b1.a = new String(remotedevice.getBluetoothAddress());
                Blooover2.a(a).addElement(b1);
                (a.a ? org.trifinite.blooover2.Blooover2.b(a) : org.trifinite.blooover2.Blooover2.c(a)).append(b1.a, null);
                if (!a.a) goto _L2; else goto _L1
    _L1:
                Blooover2.d(a);
                new StringBuffer();
                org.trifinite.blooover2.Blooover2.b(a);
                  goto _L3
    _L2:
                Blooover2.d(a);
                new StringBuffer();
                org.trifinite.blooover2.Blooover2.c(a);
    _L3:
                size();
                Integer.toString();
                append();
                ": ";
                append();
                b1.a;
                append();
                toString();
                a();
            }
    
            private static String a(RemoteDevice remotedevice, boolean flag) {
                String s1 = null;
                try {
                    s1 = new String(remotedevice.getFriendlyName(flag));
                }
                catch (Exception _ex) {
                    return "Unknown";
                }
                return s1;
            }
    
            public final void servicesDiscovered(int i1, ServiceRecord aservicerecord[]) {
            }
    
            public final void serviceSearchCompleted(int i1, int j1) {
                synchronized (this) {
                    notifyAll();
                }
            }
    
            public final void inquiryCompleted(int i1) {
                if (Blooover2.a(a).size() != 0) goto _L2; else goto _L1
    _L1:
                Blooover2.d(a);
                new g(Blooover2.e(a), Blooover2.f(a), org.trifinite.blooover2.Blooover2.g(a), "No Bluetooth", "device in range!", g.b, null);
                  goto _L3
    _L2:
                if (!a.a) goto _L5; else goto _L4
    _L4:
                Blooover2.d(a);
                org.trifinite.blooover2.Blooover2.b(a);
                  goto _L3
    _L5:
                Blooover2.d(a);
                org.trifinite.blooover2.Blooover2.c(a);
    _L3:
                a();
                Blooover2.d(a).a();
                int j1 = 0;
                Image image1;
                do {
                    if (j1 >= Blooover2.a(a).size()) {
                        break;
                    }
                    org.trifinite.blooover2.b b1;
                    String s1;
                    if ((s1 = a((b1 = (org.trifinite.blooover2.b)Blooover2.a(a).elementAt(j1)).c, false)).length() > 0) {
                        b1.b = s1;
                    }
                    Image image;
                    switch (Blooover2.a(a, b1.a)) {
                    case 2: // '\002'
                    case 8: // '\b'
                        image1 = Blooover2.h(a);
                        break;
    
                    case 1: // '\001'
                        image1 = Blooover2.i(a);
                        break;
    
                    case 0: // '\0'
                        image1 = Blooover2.j(a);
                        break;
    
                    case 3: // '\003'
                    case 4: // '\004'
                    case 5: // '\005'
                    case 6: // '\006'
                    case 7: // '\007'
                    default:
                        image1 = Blooover2.k(a);
                        break;
                    }
                    image = image1;
                    (a.a ? org.trifinite.blooover2.Blooover2.b(a) : org.trifinite.blooover2.Blooover2.c(a)).set(j1, b1.b, image);
                    j1++;
                } while (true);
                Blooover2.d(a).a();
                return;
            }
    
            m() {
                a = Blooover2.this;
            }
        }
    
    
        private e b;
        private int c;
        private Vector d;
        private Vector e;
        private Vector f;
        private Vector g;
        private LocalDevice h;
        private DiscoveryAgent i;
        private m j;
        private m k;
        private String l;
        private String m;
        private String n;
        private String o;
        private RecordStore p;
        protected boolean a;
        private Display q;
        private Image r;
        private Image s;
        private Image t;
        private Image u;
        private Image v;
        private Image w;
        private Image x;
        private Image y;
        private List z;
        private List A;
        private List B;
        private List C;
        private List D;
        private Command E;
        private Command F;
        private Command G;
        private Command H;
        private Command I;
        private Command J;
        private Command K;
        private Command L;
        private Command M;
        private Form N;
        private Command O;
        private Command P;
        private Command Q;
        private Form R;
        private Form S;
        private Form T;
        private Form U;
        private Form V;
        private Form W;
        private Form X;
        private Form Y;
        private Form Z;
        private Form aa;
        private Form ab;
        private Form ac;
        private Form ad;
        private b ae;
        private ChoiceGroup af;
        private ChoiceGroup ag;
        private TextField ah;
        private ChoiceGroup ai;
        private TextField aj;
        private TextField ak;
        private TextField al;
        private TextField am;
        private TextField an;
        private TextField ao;
        private ChoiceGroup ap;
        private TextField aq;
        private TextField ar;
        private TextField as;
        private TextField at;
        private TextField au;
        private TextField av;
        private ChoiceGroup aw;
        private TextField ax;
        private ChoiceGroup ay;
        private TextField az;
        private TextField aA;
        private TextField aB;
        private TextField aC;
        private TextField aD;
        private TextField aE;
        private TextField aF;
        private int aG;
        private String aH;
        private org.trifinite.blooover2.b aI;
    
        public Blooover2() {
            c = 0;
            e = new Vector();
            f = new Vector();
            a = false;
            aG = 0;
            q = Display.getDisplay(this);
            try {
                h = LocalDevice.getLocalDevice();
            }
            catch (BluetoothStateException _ex) {
                new g(q, t, null, "Fatal Error:", "No Bluetooth support!", g.a, this);
            }
            E = new Command("Select", 8, 1);
            F = new Command("Show", 8, 1);
            G = new Command("Delete", 8, 3);
            H = new Command("Send", 8, 2);
            K = new Command("Stop", 6, 1);
            J = new Command("Exit", 7, 1);
            L = new Command("Dismiss", 2, 1);
            I = new Command("Back", 2, 1);
            M = new Command("Help", 5, 1);
            O = new Command("Cancel", 7, 1);
            P = new Command("Apply", 8, 1);
            Q = new Command("Audit", 8, 1);
            d = new Vector();
            try {
                r = Image.createImage("/images/splashImage.png");
                s = Image.createImage("/images/waitingImage.png");
                t = Image.createImage("/images/errorImage.png");
                u = Image.createImage("/images/dot_red.png");
                v = Image.createImage("/images/dot_green.png");
                w = Image.createImage("/images/dot_yellow.png");
                x = Image.createImage("/images/dot_grey.png");
                y = Image.createImage("/images/trifinite.warning.png");
            }
            catch (Exception _ex) { }
            af = new ChoiceGroup("Quick Config", 2);
            af.append("Do BlueBug", null);
            af.append("Do HeloMoto", null);
            af.append("Do BlueSnarf", null);
            af.append("Do Malformed Objects", null);
            ag = new ChoiceGroup("General Settings", 2);
            ag.append("Enable QuickConfig", null);
            ag.append("Include Descriptions", null);
            ag.append("Keep Reports", null);
            ah = new TextField("Number of Reports", "", 3, 2);
            ai = new ChoiceGroup("BlueBug Settings", 2);
            ai.append("Perform BlueBug attack", null);
            ai.append("Retrieve Numbers", null);
            ai.append("Retrieve SMS", null);
            ai.append("Write PB Entry", null);
            ai.append("Set Call Forward", null);
            ai.append("Initiate Voice Call", null);
            aj = new TextField("Entry Name", "", 23, 0);
            ak = new TextField("Entry Number", "", 23, 3);
            al = new TextField("Forward Number", "", 23, 0x20000);
            am = new TextField("Call Number", "", 23, 0x20000);
            an = new TextField("Number of Entries", "", 3, 2);
            ao = new TextField("Number of SMS", "", 3, 2);
            ap = new ChoiceGroup("HeloMoto Settings", 2);
            ap.append("Perform BlueBug attack", null);
            ap.append("Retrieve Numbers", null);
            ap.append("Retrieve SMS", null);
            ap.append("Write PB Entry", null);
            ap.append("Set Call Forward", null);
            ap.append("Initiate Voice Call", null);
            aq = new TextField("Entry Name", "", 23, 0);
            ar = new TextField("Entry Number", "", 23, 3);
            as = new TextField("Forward Number", "", 23, 0x20000);
            at = new TextField("Call Number", "", 23, 0x20000);
            au = new TextField("Number of Entries", "", 3, 2);
            av = new TextField("Number of SMS", "", 3, 2);
            aw = new ChoiceGroup("BlueSnarf Settings", 2);
            aw.append("Perform BlueSnarf attack", null);
            aw.append("Retrieve pb.vcf", null);
            aw.append("Retrieve cal.vcs", null);
            aw.append("Retrieve Custom file", null);
            ax = new TextField("File Name", "", 255, 0);
            ay = new ChoiceGroup("MFO Settings", 2);
            ay.append("Perform MFO attack", null);
            ay.append("Send Object 1", null);
            ay.append("Send Object 2", null);
            ay.append("Send Object 3", null);
            az = new TextField("Object Name 1", "", 255, 0);
            aA = new TextField("Object Name 2", "", 255, 0);
            aB = new TextField("Object Name 3", "", 255, 0);
            aC = new TextField("Object Content 1", "", 2048, 0);
            aD = new TextField("Object Content 2", "", 2048, 0);
            aE = new TextField("Object Content 3", "", 2048, 0);
            aF = new TextField("Password", "", 20, 0x10000);
            z = new List("Blooover II", 3);
            z.append("Find Devices", null);
            z.append("Settings", null);
            z.append("Reports", null);
            z.append("About Blooover II", null);
            z.append("Exit Blooover II", null);
            z.addCommand(E);
            z.setCommandListener(this);
            C = new List("Settings", 3);
            C.append("General", null);
            C.append("BlueBug", null);
            C.append("HeloMoto", null);
            C.append("BlueSnarf", null);
            C.append("Malformed Objects", null);
            C.addCommand(E);
            C.addCommand(I);
            C.setCommandListener(this);
            B = new List("Reports", 3);
            B.addCommand(F);
            B.addCommand(G);
            B.addCommand(H);
            B.addCommand(I);
            B.setCommandListener(this);
            R = new Form("Audit Report");
            R.addCommand(I);
            R.setCommandListener(this);
            N = new Form("About Blooover II");
            N.append("Blooover II is a mobile Bluetooth auditing application.\n\nBlooover II must not be used in order to infringe people's privacy.\nThe trifinite.group is not taking liability for any kind of consequences evolving from the use of this application.\n\nBlooover II is free for non-commercial use and must be licensed for commercial use. (contact blooover2@trifinite.org for licensing details)\nFor more information, please visit http://trifinite.org/\n\nIf you like what you see, please consider doing 'trifinite.donation' ;) . Thanks!");
            N.append(y);
            N.addCommand(L);
            N.setCommandListener(this);
            A = new List("Found Devices", 3);
            A.addCommand(Q);
            A.addCommand(I);
            A.setCommandListener(this);
            D = new List("Send to", 3);
            D.addCommand(H);
            D.addCommand(I);
            D.setCommandListener(this);
            T = new Form("BlueBug Help");
            l = new String("The BlueBug attack exploits the AT-Command parser which is sometimes provided as a hidden, unauthorized service which is intended to be used for headsets. BlueBug enables the reading and writing of phonebook entries, the reading/sending of SMS messages (the latter is not implemented), the setting of call diverts and so on. This attack works on most Nokia 6310i, Nokia 8910i, some SE T610 and the Ericsson T86i and was discovered by Martin Herfurt in February 2004.");
            T.append(l);
            T.addCommand(L);
            T.setCommandListener(this);
            X = new Form("BlueSnarf Help");
            m = new String("The BlueSnarf attack exploits poor implementations of the OBEX Push Profile. This is done by connecting to the mostly unauthorized OPP service and requesting known filenames (known from the IrMC Specification) instead of sending a .vcf file as expected. Faulty implementations would disclose personal information like the phonebook file, the calendar file and so on. This attack works on most Nokia 6310i, Nokia 8910i, some SE T610 and the Ericsson T86i and was discovered by Adam Laurie in November 2003.");
            X.append(m);
            X.addCommand(L);
            X.setCommandListener(this);
            V = new Form("HeloMoto Help");
            n = new String("In its method the HeloMoto attack is very similar to the BlueBug attack. Vulnerable devices trust a device that attempted (and not necessarily finished) an OBEX Push transfer. This allows a consequent connection to the device's Headset Profile which then allows unprotected access to the AT Command parser.Early versions of the Motorola V-Series phones are subject to this attack. This flaw was discovered in May 2005 by Adam Laurie.");
            V.append(n);
            V.addCommand(L);
            V.setCommandListener(this);
            Z = new Form("Malformed Objects Help");
            o = new String("The Malformed Objects attack is a denial of service attack. Vulnerable devices would crash when they receive a e.g. malformed business card. This causes the device's parser into an instable state and often leads to unpredicted behaviour (including device crashes). Even though this kind of attack is very old (it has been done via IrDA and SMS before) it can still be found on some modern devices.");
            Z.append(o);
            Z.addCommand(L);
            Z.setCommandListener(this);
            ab = new Form("Quick Config");
            ab.append(af);
            ab.addCommand(P);
            ab.addCommand(O);
            ab.setCommandListener(this);
            S = new Form("General Configuration");
            S.append(ag);
            S.append(ah);
            S.addCommand(P);
            S.addCommand(O);
            S.setCommandListener(this);
            U = new Form("BlueBug Configuration");
            U.append(ai);
            U.append(an);
            U.append(ao);
            U.append(aj);
            U.append(ak);
            U.append(al);
            U.append(am);
            U.addCommand(P);
            U.addCommand(O);
            U.addCommand(M);
            U.setCommandListener(this);
            Y = new Form("BlueSnarf Configuration");
            Y.append(aw);
            Y.append(ax);
            Y.addCommand(P);
            Y.addCommand(O);
            Y.addCommand(M);
            Y.setCommandListener(this);
            W = new Form("HeloMoto Configuration");
            W.append(ap);
            W.append(au);
            W.append(av);
            W.append(aq);
            W.append(ar);
            W.append(as);
            W.append(at);
            W.addCommand(P);
            W.addCommand(O);
            W.addCommand(M);
            W.setCommandListener(this);
            aa = new Form("MFO Configuration");
            aa.append(ay);
            aa.append(az);
            aa.append(aC);
            aa.append(aA);
            aa.append(aD);
            aa.append(aB);
            aa.append(aE);
            aa.addCommand(P);
            aa.addCommand(O);
            aa.addCommand(M);
            aa.setCommandListener(this);
            ac = new Form("Password Entry");
            ac.append("Please enter your personal Blooover password");
            ac.append(aF);
            ac.addCommand(P);
            ac.setCommandListener(this);
            ad = new Form("Audit Results");
            ad.addCommand(L);
            ad.setCommandListener(this);
            b = new e(aF.getString());
            if (b.a) {
                q.setCurrent(ac);
            }
            if (!b.b()) {
                if (b.a) {
                    q.setCurrent(ac);
                }
            } else {
                c();
            }
            e();
        }
    
        protected final void startApp() throws MIDletStateChangeException {
            new c(q, r, 10000, z);
        }
    
        protected final void pauseApp() {
        }
    
        protected final void destroyApp(boolean flag) throws MIDletStateChangeException {
        }
    
        public final void a() {
            b.a();
            f();
            notifyDestroyed();
        }
    
        private void b() {
            if (!af.isSelected(0)) goto _L2; else goto _L1
    _L1:
            ai;
            0;
            true;
              goto _L3
    _L2:
            ai;
            false;
            false;
    _L3:
            setSelectedIndex();
            if (!af.isSelected(1)) goto _L5; else goto _L4
    _L4:
            ap;
            0;
            true;
              goto _L6
    _L5:
            ap;
            false;
            false;
    _L6:
            setSelectedIndex();
            if (!af.isSelected(2)) goto _L8; else goto _L7
    _L7:
            aw;
            0;
            true;
              goto _L9
    _L8:
            aw;
            false;
            false;
    _L9:
            setSelectedIndex();
            if (!af.isSelected(3)) goto _L11; else goto _L10
    _L10:
            ay;
            0;
            true;
              goto _L12
    _L11:
            ay;
            false;
            false;
    _L12:
            setSelectedIndex();
            b.b = ag.isSelected(0);
            b.c = ag.isSelected(1);
            b.d = ag.isSelected(2);
            b.e = Integer.parseInt(ah.getString());
            b.f = ai.isSelected(0);
            b.g = ai.isSelected(3);
            b.h = aj.getString();
            b.i = ak.getString();
            b.j = ai.isSelected(4);
            b.k = al.getString();
            b.l = ai.isSelected(5);
            b.m = am.getString();
            b.n = ai.isSelected(1);
            b.o = Integer.parseInt(an.getString());
            b.p = ai.isSelected(2);
            b.q = Integer.parseInt(ao.getString());
            b.r = ap.isSelected(0);
            b.s = ap.isSelected(3);
            b.t = aq.getString();
            b.u = ar.getString();
            b.v = ap.isSelected(4);
            b.w = as.getString();
            b.x = ap.isSelected(5);
            b.y = at.getString();
            b.z = ap.isSelected(1);
            b.A = Integer.parseInt(au.getString());
            b.B = ap.isSelected(2);
            b.C = Integer.parseInt(av.getString());
            b.D = aw.isSelected(0);
            b.E = aw.isSelected(1);
            b.F = aw.isSelected(2);
            b.G = aw.isSelected(3);
            b.H = ax.getString();
            b.I = ay.isSelected(0);
            b.J = ay.isSelected(1);
            b.K = ay.isSelected(2);
            b.L = ay.isSelected(3);
            b.M = az.getString();
            b.N = aC.getString();
            b.O = aA.getString();
            b.P = aD.getString();
            b.Q = aB.getString();
            b.R = aE.getString();
            return;
        }
    
        private void c() {
            if (b.b) {
                ag.setSelectedIndex(0, true);
            }
            if (b.c) {
                ag.setSelectedIndex(1, true);
            }
            if (b.d) {
                ag.setSelectedIndex(2, true);
            }
            ah.setString(Integer.toString(b.e));
            if (b.f) {
                ai.setSelectedIndex(0, true);
            }
            if (b.g) {
                ai.setSelectedIndex(3, true);
            }
            aj.setString(b.h);
            ak.setString(b.i);
            if (b.j) {
                ai.setSelectedIndex(4, true);
            }
            al.setString(b.k);
            if (b.l) {
                ai.setSelectedIndex(5, true);
            }
            am.setString(b.m);
            if (b.n) {
                ai.setSelectedIndex(1, true);
            }
            an.setString(Integer.toString(b.o));
            if (b.p) {
                ai.setSelectedIndex(2, true);
            }
            ao.setString(Integer.toString(b.q));
            if (b.r) {
                ap.setSelectedIndex(0, true);
            }
            if (b.s) {
                ap.setSelectedIndex(3, true);
            }
            aq.setString(b.t);
            ar.setString(b.u);
            if (b.v) {
                ap.setSelectedIndex(4, true);
            }
            as.setString(b.w);
            if (b.x) {
                ap.setSelectedIndex(5, true);
            }
            at.setString(b.y);
            if (b.z) {
                ap.setSelectedIndex(1, true);
            }
            au.setString(Integer.toString(b.A));
            if (b.B) {
                ap.setSelectedIndex(2, true);
            }
            av.setString(Integer.toString(b.C));
            if (b.D) {
                aw.setSelectedIndex(0, true);
            }
            if (b.E) {
                aw.setSelectedIndex(1, true);
            }
            if (b.F) {
                aw.setSelectedIndex(2, true);
            }
            if (b.G) {
                aw.setSelectedIndex(3, true);
            }
            ax.setString(b.H);
            if (b.I) {
                ay.setSelectedIndex(0, true);
            }
            if (b.J) {
                ay.setSelectedIndex(1, true);
            }
            if (b.K) {
                ay.setSelectedIndex(2, true);
            }
            if (b.L) {
                ay.setSelectedIndex(3, true);
            }
            az.setString(b.M);
            aC.setString(b.N);
            aA.setString(b.O);
            aD.setString(b.P);
            aB.setString(b.Q);
            aE.setString(b.R);
            if (!b.f) goto _L2; else goto _L1
    _L1:
            af;
            0;
            true;
              goto _L3
    _L2:
            af;
            false;
            false;
    _L3:
            setSelectedIndex();
            if (!b.r) goto _L5; else goto _L4
    _L4:
            af;
            1;
            true;
              goto _L6
    _L5:
            af;
            true;
            false;
    _L6:
            setSelectedIndex();
            if (!b.D) goto _L8; else goto _L7
    _L7:
            af;
            2;
            true;
              goto _L9
    _L8:
            af;
            2;
            false;
    _L9:
            setSelectedIndex();
            if (!b.I) goto _L11; else goto _L10
    _L10:
            af;
            3;
            true;
              goto _L12
    _L11:
            af;
            3;
            false;
    _L12:
            setSelectedIndex();
        }
    
        private void d() {
            A.deleteAll();
            D.deleteAll();
            d.removeAllElements();
            try {
                if (i == null) {
                    i = h.getDiscoveryAgent();
                }
                h.setDiscoverable(0x9e8b33);
                k = new m(this);
                i.startInquiry(0x9e8b33, k);
                ae = new b(q, s, A, "scanning");
                ae.a("");
                ae.addCommand(K);
                ae.setCommandListener(this);
                ae.a(true);
                return;
            }
            catch (Exception _ex) {
                new g(q, t, z, "Problem", "during Inquiry", g.b, this);
            }
        }
    
        private void e() {
            Object obj = null;
            Object obj1 = null;
            f.removeAllElements();
            try {
                p = RecordStore.openRecordStore("B2Reports", true);
            }
            catch (Exception _ex) { }
            for (int i1 = 1; i1 <= p.getNumRecords(); i1++) {
                j j1 = new j();
                byte abyte0[] = p.getRecord(i1);
                DataInputStream datainputstream = new DataInputStream(new ByteArrayInputStream(abyte0));
                j1.a = datainputstream.readUTF();
                j1.b = datainputstream.readUTF();
                j1.c = datainputstream.readUTF();
                j1.d = datainputstream.readInt();
                j1.e = datainputstream.readUTF();
                datainputstream.close();
                f.addElement(j1);
            }
    
              goto _L1
            JVM INSTR dup ;
            Exception exception;
            exception;
            printStackTrace();
    _L1:
            try {
                p.closeRecordStore();
            }
            catch (Exception _ex) { }
            g();
            return;
        }
    
        private void a(int i1) {
            R.append(((j)(j)f.elementAt(i1)).e);
        }
    
        private void f() {
            DataOutputStream dataoutputstream;
            int i1;
            Object obj = null;
            dataoutputstream = null;
            try {
                RecordStore.deleteRecordStore("B2Reports");
            }
            catch (Exception _ex) { }
            try {
                p = RecordStore.openRecordStore("B2Reports", true);
            }
            catch (Exception _ex) { }
            i1 = 0;
    _L4:
            if (i1 >= f.size() || i1 >= b.e) goto _L2; else goto _L1
    _L1:
            ByteArrayOutputStream bytearrayoutputstream;
            j j1;
            j1 = (j)f.elementAt(i1);
            bytearrayoutputstream = new ByteArrayOutputStream();
            dataoutputstream = new DataOutputStream(bytearrayoutputstream);
            if (j1 != null) {
                dataoutputstream.writeUTF(j1.a);
                dataoutputstream.writeUTF(j1.b);
                dataoutputstream.writeUTF(j1.c);
                dataoutputstream.writeInt(j1.d);
                dataoutputstream.writeUTF(j1.e);
                dataoutputstream.flush();
            }
              goto _L3
            JVM INSTR dup ;
            IOException ioexception;
            ioexception;
            printStackTrace();
    _L3:
            byte abyte0[] = bytearrayoutputstream.toByteArray();
            try {
                p.addRecord(abyte0, 0, abyte0.length);
            }
            catch (Exception _ex) { }
            i1++;
              goto _L4
    _L2:
            try {
                dataoutputstream.close();
                p.closeRecordStore();
                return;
            }
            catch (Exception _ex) {
                return;
            }
        }
    
        private void g() {
            B.deleteAll();
            Object obj = null;
            Object obj1 = null;
            for (int i1 = f.size() - 1; i1 >= 0; i1--) {
                if (f.elementAt(i1) != null) {
                    j j1;
                    Image image = ((j1 = (j)f.elementAt(i1)).d | 2) != 2 ? (j1.d | 1) != 1 ? (j1.d | 0) != 0 ? x : v : w : u;
                    B.append(j1.c + " - " + j1.b, image);
                }
            }
    
        }
    
        private void a(org.trifinite.blooover2.b b1) {
            e = new Vector();
            g = new Vector();
            aI = b1;
            c = 0;
            g.addElement(new o(b1, this, b));
            if (b.f) {
                g.addElement(new n(b1, this, b));
            }
            if (b.r) {
                g.addElement(new org.trifinite.blooover2.c(b1, this, b));
            }
            if (b.D) {
                g.addElement(new k(b1, this, b));
            }
            if (b.I) {
                g.addElement(new a(b1, this, b));
            }
            if (g.size() > 0) {
                ae = new b(q, s, ad, "Auditing");
                ((org.trifinite.blooover2.g)g.elementAt(c)).start();
            }
        }
    
        private int c(String s1) {
            for (int i1 = 0; i1 < f.size(); i1++) {
                j j1;
                if ((j1 = (j)f.elementAt(i1)).a.equals(s1)) {
                    return j1.d;
                }
            }
    
            return 10;
        }
    
        private void h() {
            j j1 = new j();
            int i1;
            aH = new String();
            getClass();
            aH = aH.concat("Blooover II\n===========\nThe trifinite Bluetooth Hoover. Version 2 (" + "V2.0.1-22c3" + ")\n\n");
            aH = aH.concat("Audited device\nAddress: " + aI.a + "\nName: " + aI.b + "\nClass: " + aI.d.getMajorDeviceClass() + "\n");
            i1 = 0;
    _L11:
            l l1;
            if (i1 >= e.size()) {
                return; /* ------------------------changed----------------------------------------------- */
            }
            l1 = (l)e.elementAt(i1);
            if (e.elementAt(i1) == null) goto _L2; else goto _L1
    _L1:
            if (i1 == 0) {
                aH = aH.concat("Time: " + l1.e() + "\n\n");
                j1.c = l1.e();
                j1.a = aI.a;
                j1.b = aI.b;
            }
            aH = aH.concat(l1.c() + "\n\n");
            if (b.c) {
                aH = aH.concat(l1.a() + "\n\n");
            }
            j1.d = j1.d | l1.d();
            l1.d();
            JVM INSTR tableswitch 0 8: default 522
        //                   0 396
        //                   1 468
        //                   2 418
        //                   3 522
        //                   4 450
        //                   5 522
        //                   6 522
        //                   7 522
        //                   8 407;
               goto _L2 _L3 _L4 _L5 _L2 _L6 _L2 _L2 _L2 _L7
    _L3:
            this;
            aH;
            "Result:\nBlooover II tested the audited phone not to be vulnerable to this test.\n\n";
              goto _L8
    _L7:
            this;
            aH;
            "Result:\nBlooover II had trouble performing this test.\n\n";
              goto _L8
    _L5:
            aH = aH.concat("Result:\nBlooover II found the audited phone to be vulnerable to this test.\n\n");
            this;
            aH;
            new StringBuffer();
            "Details:\n";
              goto _L9
    _L6:
            this;
            aH;
            new StringBuffer();
            "Result:\n";
              goto _L9
    _L4:
            aH = aH.concat("Result:\nBlooover II found the audited phone to maybe have a problem with this test.\n\n");
            this;
            aH;
            new StringBuffer();
            "Details\n\n";
    _L9:
            append();
            l1.b();
            append();
            "\n\n";
            append();
            toString();
    _L8:
            concat();
            aH;
    _L2:
            i1++;
            if (true) goto _L11; else goto _L10
    _L10:
            j1.e = aH;
              goto _L12
            JVM INSTR pop ;
    _L12:
            f.addElement(j1);
            g();
            return;
        }
    
        public final void commandAction(Command command, Displayable displayable) {
    label0:
            {
                if (command == E && displayable == z && z.getSelectedIndex() == 0) {
                    a = false;
                    d();
                    return;
                }
                if (command == E && displayable == z && z.getSelectedIndex() == 1) {
                    q.setCurrent(C);
                    return;
                }
                if (command == E && displayable == z && z.getSelectedIndex() == 2) {
                    q.setCurrent(B);
                    return;
                }
                if (command == E && displayable == z && z.getSelectedIndex() == 3) {
                    q.setCurrent(N);
                    return;
                }
                if (command != E || displayable != z || z.getSelectedIndex() != 4) {
                    if (command == I && displayable == C) {
                        q.setCurrent(z);
                        return;
                    }
                    if (command == E && displayable == C && C.getSelectedIndex() == 0) {
                        q.setCurrent(S);
                        return;
                    }
                    if (command == E && displayable == C && C.getSelectedIndex() == 1) {
                        q.setCurrent(U);
                        return;
                    }
                    if (command == E && displayable == C && C.getSelectedIndex() == 2) {
                        q.setCurrent(W);
                        return;
                    }
                    if (command == E && displayable == C && C.getSelectedIndex() == 3) {
                        q.setCurrent(Y);
                        return;
                    }
                    if (command == E && displayable == C && C.getSelectedIndex() == 4) {
                        q.setCurrent(aa);
                        return;
                    }
                    if (command == L && displayable == T) {
                        q.setCurrent(U);
                        return;
                    }
                    if (command == L && displayable == V) {
                        q.setCurrent(W);
                        return;
                    }
                    if (command == L && displayable == X) {
                        q.setCurrent(Y);
                        return;
                    }
                    if (command == L && displayable == Z) {
                        q.setCurrent(aa);
                        return;
                    }
                    if (command == M && displayable == U) {
                        q.setCurrent(T);
                        return;
                    }
                    if (command == M && displayable == W) {
                        q.setCurrent(V);
                        return;
                    }
                    if (command == M && displayable == Y) {
                        q.setCurrent(X);
                        return;
                    }
                    if (command == O && (displayable == S || displayable == U || displayable == W || displayable == Y || displayable == aa)) {
                        q.setCurrent(C);
                        return;
                    }
                    if (command == P && (displayable == S || displayable == U || displayable == W || displayable == Y || displayable == aa)) {
                        b();
                        q.setCurrent(C);
                        return;
                    }
                    if (command == O && displayable == ab) {
                        q.setCurrent(A);
                        return;
                    }
                    if (command == I && displayable == B) {
                        q.setCurrent(z);
                        return;
                    }
                    if (command == H && displayable == B) {
                        a = true;
                        d();
                        return;
                    }
                    if (command == I && displayable == D) {
                        q.setCurrent(B);
                        return;
                    }
                    if (command == H && displayable == D) {
                        a((org.trifinite.blooover2.b)d.elementAt(D.getSelectedIndex()), ((j)f.elementAt(B.getSelectedIndex())).e.getBytes(), "AuditReport.txt");
                        return;
                    }
                    if (command == F && displayable == B) {
                        a(B.getSelectedIndex());
                        q.setCurrent(R);
                        return;
                    }
                    if (command == G && displayable == B) {
                        f.removeElementAt(B.getSelectedIndex());
                        g();
                        q.setCurrent(B);
                        return;
                    }
                    if (command == I && displayable == R) {
                        q.setCurrent(B);
                        return;
                    }
                    if (command == P && displayable == ab) {
                        b();
                        a((org.trifinite.blooover2.b)d.elementAt(A.getSelectedIndex()));
                        return;
                    }
                    if (command == L && displayable == ad) {
                        q.setCurrent(A);
                        return;
                    }
                    if (command == L && displayable == N) {
                        q.setCurrent(z);
                        return;
                    }
                    if (command == Q && displayable == A) {
                        if (b.b) {
                            q.setCurrent(ab);
                            return;
                        } else {
                            a((org.trifinite.blooover2.b)d.elementAt(A.getSelectedIndex()));
                            return;
                        }
                    }
                    if (command == I && displayable == A) {
                        q.setCurrent(z);
                        return;
                    }
                    if (command == K && displayable == ae) {
                        i.cancelInquiry(k);
                        return;
                    }
                    if (command == P && displayable == ac) {
                        aF.getString();
                        if (!b.b()) {
                            if (b.a && aG < 3) {
                                q.setCurrent(ac);
                                aG++;
                                return;
                            } else {
                                new g(q, t, z, "Fatal Error:", "Password is wrong!", g.a, this);
                                return;
                            }
                        } else {
                            c();
                            return;
                        }
                    }
                    if (command == K) {
                        i.cancelInquiry(j);
                        i.cancelServiceSearch(0);
                        return;
                    }
                    if (command != J) {
                        break label0;
                    }
                }
                a();
            }
        }
    
        private void a(org.trifinite.blooover2.b b1, byte abyte0[], String s1) {
            e = new Vector();
            g = new Vector();
            aI = b1;
            c = 0;
            g.addElement(new o(b1, this, b));
            d d1;
            (d1 = new d(b1, this, b)).a(abyte0);
            d1.a(s1);
            g.addElement(d1);
            if (g.size() > 0) {
                ae = new b(q, s, ad, "Sending");
                ((org.trifinite.blooover2.g)g.elementAt(c)).start();
            }
        }
    
        public final void a(l l1) {
            if (a) {
                c++;
                if (c < g.size()) {
                    if (g.elementAt(c) != null) {
                        ((org.trifinite.blooover2.g)g.elementAt(c)).setPriority(10);
                        ((org.trifinite.blooover2.g)g.elementAt(c)).start();
                    }
                } else {
                    ae.a(z);
                    ae.a();
                    a = false;
                }
            } else {
                e.addElement(l1);
                c++;
                if (c < g.size()) {
                    if (g.elementAt(c) != null) {
                        ((org.trifinite.blooover2.g)g.elementAt(c)).setPriority(10);
                        ((org.trifinite.blooover2.g)g.elementAt(c)).start();
                    }
                } else {
                    h();
                    ad.deleteAll();
                    ad.append(aH);
                    ae.a(ad);
                    ae.a();
                    return;
                }
            }
            break MISSING_BLOCK_LABEL_272;
            JVM INSTR dup ;
            Exception exception;
            exception;
            printStackTrace();
            new g(q, t, z, "Exception", "auditFinished", g.b, this);
        }
    
        public final void a(String s1) {
            ae.a(s1);
        }
    
        public final void b(String s1) {
            ae.b(s1);
        }
    
        static Vector a(Blooover2 blooover2) {
            return blooover2.d;
        }
    
        static List b(Blooover2 blooover2) {
            return blooover2.D;
        }
    
        static List c(Blooover2 blooover2) {
            return blooover2.A;
        }
    
        static b d(Blooover2 blooover2) {
            return blooover2.ae;
        }
    
        static Display e(Blooover2 blooover2) {
            return blooover2.q;
        }
    
        static Image f(Blooover2 blooover2) {
            return blooover2.t;
        }
    
        static List g(Blooover2 blooover2) {
            return blooover2.z;
        }
    
        static int a(Blooover2 blooover2, String s1) {
            return blooover2.c(s1);
        }
    
        static Image h(Blooover2 blooover2) {
            return blooover2.u;
        }
    
        static Image i(Blooover2 blooover2) {
            return blooover2.w;
        }
    
        static Image j(Blooover2 blooover2) {
            return blooover2.v;
        }
    
        static Image k(Blooover2 blooover2) {
            return blooover2.x;
        }
    }
    thanks

    capacitator

  2. #2
    levent Guest

    Default

    Do you know how to compile a midlet? Which errors do you get? You can list at least the first few of them here.

  3. #3
    capacitator is offline Member
    Join Date
    Aug 2007
    Posts
    2
    Rep Power
    0

    Default

    ive bin doing some reading, and previously i thought i just had to use javac, but ive now downloaded the midp and cldc implementation and know how to use them in conjunction to compile.
    Although, i am still getting 100 errors. They mostly seem to be "illegal start of expression" and "is not a statement".

    heres the mojority,


    blooover2.java:38: illegal start of expression
    goto _L3
    ^
    blooover2.java:47: not a statement
    ": ";
    ^
    blooover2.java:49: not a statement
    b1.a;
    ^
    blooover2.java:76: illegal start of expression
    if (Blooover2.a(a).size() != 0) got
    ^
    blooover2.java:76: illegal start of expression
    if (Blooover2.a(a).size() != 0) got

    blooover2.java:80: illegal start of expression
    goto _L3
    ^
    blooover2.java:82: 'else' without 'if'
    if (!a.a) goto _L5; else goto _L4
    ^
    blooover2.java:86: illegal start of expression
    goto _L3
    ^
    blooover2.java:473: illegal start of expression
    if (!af.isSelected(0)) goto _L2; else g
    ^
    blooover2.java:473: illegal start of expression
    if (!af.isSelected(0)) goto _L2; else g
    ^
    blooover2.java:476: not a statement
    0;
    ^
    blooover2.java:477: not a statement
    true;
    ^
    blooover2.java:478: illegal start of expression
    goto _L3
    ^
    blooover2.java:481: not a statement
    false;
    ^
    blooover2.java:482: not a statement
    false;
    ^
    blooover2.java:485: illegal start of expression
    if (!af.isSelected(1)) goto _L5; else g
    ^
    blooover2.java:485: illegal start of expression
    if (!af.isSelected(1)) goto _L5; else g
    ^
    blooover2.java:488: not a statement
    0;
    ^
    blooover2.java:489: not a statement
    true;
    ^
    blooover2.java:490: illegal start of expression
    goto _L6
    ^
    blooover2.java:493: not a statement
    false;
    ^
    blooover2.java:494: not a statement
    false;
    ^
    blooover2.java:497: illegal start of expression
    if (!af.isSelected(2)) goto _L8; else g
    ^
    blooover2.java:497: illegal start of expression
    if (!af.isSelected(2)) goto _L8; else g
    ^
    blooover2.java:500: not a statement
    0;
    ^
    blooover2.java:501: not a statement
    true;
    ^
    blooover2.java:502: illegal start of expression
    goto _L9
    ^
    blooover2.java:505: not a statement
    false;
    ^
    blooover2.java:506: not a statement
    false;
    ^
    blooover2.java:509: illegal start of expression
    if (!af.isSelected(3)) goto _L11; else
    ^
    blooover2.java:509: illegal start of expression
    if (!af.isSelected(3)) goto _L11; else

    blooover2.java:512: not a statement
    0;
    ^
    blooover2.java:513: not a statement
    true;
    ^
    blooover2.java:514: illegal start of expression
    goto _L12
    ^
    blooover2.java:517: not a statement
    false;
    ^
    blooover2.java:518: not a statement
    false;
    ^
    blooover2.java:657: illegal start of expression
    if (!b.f) goto _L2; else goto _L1
    ^
    blooover2.java:657: illegal start of expression
    if (!b.f) goto _L2; else goto _L1
    ^
    blooover2.java:660: not a statement
    0;
    ^
    blooover2.java:661: not a statement
    true;
    ^
    blooover2.java:662: illegal start of expression
    goto _L3
    ^
    blooover2.java:665: not a statement
    false;
    ^
    blooover2.java:666: not a statement
    false;
    ^
    blooover2.java:669: illegal start of expression
    if (!b.r) goto _L5; else goto _L4
    ^
    blooover2.java:669: illegal start of expression
    if (!b.r) goto _L5; else goto _L4
    ^
    blooover2.java:672: not a statement
    1;
    ^
    blooover2.java:673: not a statement
    true;
    ^
    blooover2.java:674: illegal start of expression
    goto _L6
    ^
    blooover2.java:677: not a statement
    true;
    ^
    blooover2.java:678: not a statement
    false;
    ^
    blooover2.java:681: illegal start of expression
    if (!b.D) goto _L8; else goto _L7
    ^
    blooover2.java:681: illegal start of expression
    if (!b.D) goto _L8; else goto _L7
    ^
    blooover2.java:684: not a statement
    2;
    ^
    blooover2.java:685: not a statement
    true;
    ^
    blooover2.java:686: illegal start of expression
    goto _L9
    ^
    blooover2.java:689: not a statement
    2;
    ^
    blooover2.java:690: not a statement
    false;
    ^
    blooover2.java:693: illegal start of expression
    if (!b.I) goto _L11; else goto _L10
    ^
    blooover2.java:693: illegal start of expression
    if (!b.I) goto _L11; else goto _L10
    ^
    blooover2.java:696: not a statement
    3;
    ^
    blooover2.java:697: not a statement
    true;
    ^
    blooover2.java:698: illegal start of expression
    goto _L12
    ^
    blooover2.java:701: not a statement
    3;
    ^
    blooover2.java:702: not a statement
    false;
    ^
    blooover2.java:751: illegal start of expression
    goto _L1
    ^
    blooover2.java:754: not a statement
    exception;
    ^
    blooover2.java:784: illegal start of expression
    if (i1 >= f.size() || i1 >= b.e) goto _
    ^
    blooover2.java:784: illegal start of expression
    if (i1 >= f.size() || i1 >= b.e) goto _

    blooover2.java:799: illegal start of expression
    goto _L3
    ^
    blooover2.java:802: not a statement
    ioexception;
    ^
    blooover2.java:805: '.class' expected
    byte abyte0[] = bytearrayoutputstream.t
    ^
    blooover2.java:805: not a statement
    byte abyte0[] = bytearrayoutputstream.t
    ^
    blooover2.java:811: illegal start of expression
    goto _L4
    ^
    blooover2.java:821: ';' expected
    }
    ^
    blooover2.java:881: not a statement
    l l1;
    ^
    blooover2.java:881: ';' expected
    l l1;
    ^
    blooover2.java:886: illegal start of expression
    if (e.elementAt(i1) == null) goto _L2;
    ^
    blooover2.java:886: illegal start of expression
    if (e.elementAt(i1) == null) goto _L2;

    blooover2.java:900: ';' expected
    JVM INSTR tableswitch 0 8: default 522
    ^
    blooover2.java:913: not a statement
    aH;
    ^
    blooover2.java:914: not a statement
    "Result:\nBlooover II tested the audite
    his test.\n\n";
    ^
    blooover2.java:915: illegal start of expression
    goto _L8
    ^
    blooover2.java:918: not a statement
    aH;
    ^
    blooover2.java:919: not a statement
    "Result:\nBlooover II had trouble perfo
    ^
    blooover2.java:920: illegal start of expression
    goto _L8
    ^
    blooover2.java:923: not a statement
    this;
    ^
    blooover2.java:924: not a statement
    aH;
    ^
    blooover2.java:926: not a statement
    "Details:\n";
    ^
    blooover2.java:927: illegal start of expression
    goto _L9
    ^
    blooover2.java:930: not a statement
    aH;
    ^
    blooover2.java:932: not a statement
    "Result:\n";
    ^
    blooover2.java:933: illegal start of expression
    goto _L9
    ^
    blooover2.java:936: not a statement
    this;
    ^
    blooover2.java:937: not a statement
    aH;
    ^
    blooover2.java:939: not a statement
    "Details\n\n";
    ^
    blooover2.java:944: not a statement
    "\n\n";
    ^
    blooover2.java:949: not a statement
    aH;
    ^
    blooover2.java:952: illegal start of expression
    if (true) goto _L11; else goto _L10
    ^
    100 errors



    all i did was literally decompile a .class file, and now i cant compile it.
    any thoughts on the errors?

    thanks

    capacitator

  4. #4
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Maybe the decompiler decompiled it badly....

    You may attach the code if it is long....
    freedom exists in the world of ideas

  5. #5
    Ksenia is offline Member
    Join Date
    Jun 2008
    Posts
    1
    Rep Power
    0

    Default

    I have a same problem, did u figure out how to deal with it?

Similar Threads

  1. Compile Trouble
    By adelgado0723 in forum New To Java
    Replies: 5
    Last Post: 04-21-2008, 02:02 AM
  2. trouble with program
    By jimJohnson in forum New To Java
    Replies: 1
    Last Post: 04-03-2008, 09:29 AM
  3. Compiling error
    By lawksalih in forum New To Java
    Replies: 6
    Last Post: 01-29-2008, 07:26 PM
  4. Having trouble with array
    By ice22 in forum New To Java
    Replies: 3
    Last Post: 11-13-2007, 03:06 AM
  5. Error while compiling
    By ai_2007 in forum Advanced Java
    Replies: 1
    Last Post: 07-01-2007, 11:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •