IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Applets Java Discussion :

j'arrive pas à compiler ce prog


Sujet :

Applets Java

  1. #1
    Membre averti
    Inscrit en
    Juillet 2005
    Messages
    24
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 24
    Par défaut j'arrive pas à compiler ce prog
    bonjour,
    j'arrive pas à compiler cette applet quoique j'ai installé le J2ME Wireless Toolkit ..
    et je sais pas comment appler une applet dans une page html ..
    voilà l'applet
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
     
    import javax.microedition.midlet.*; 
    import javax.microedition.lcdui.*; 
    import java.lang.Math.*; 
    import java.lang.Double.*; 
    import java.util.*; 
     
    public class LoveCalc2 
        extends MIDlet 
        implements CommandListener, ItemCommandListener 
    { 
        public Display display; 
        public Command CMD_GO = new Command("Calculer", Command.ITEM, 1); 
        public Command CMD_EXIT = new Command("Quitter", Command.EXIT, 1); 
        public Form f1 = new Form("LoveCalc"); 
        public TextField tfnom1 = new TextField("Premier prénom : ","",30,TextField.ANY); 
        public TextField tfnom2 = new TextField("Deuxième prénom : ","",30,TextField.ANY); 
        public StringItem bcalc = new StringItem("", "Calculer", Item.BUTTON); 
        public int Score; 
        public String nom1; 
        public String nom2; 
        public String affnom1; 
        public String affnom2; 
        private long Totnom1; 
        private long Totnom2; 
        private double Moynom1; 
        private double Moynom2; 
        private double var1; 
        private double var2; 
        private double cov; 
        private long long1; 
        private long long2; 
        private double jour; 
        private double mois; 
        private double uuu; 
        private double ddd; 
        private double longsol; 
        private String scor; 
        private String solution; 
        private String obsrevation=""; 
     
        public void LoveCalc() 
        { 
            nom1 = tfnom1.getString().toLowerCase().trim(); 
            affnom1=tfnom1.getString(); 
            nom2 = tfnom2.getString().toLowerCase().trim(); 
            affnom2=tfnom2.getString(); 
            if(nom1.length()>nom2.length()) 
            { 
                nom2 = nom2 + nom2.substring(0,nom1.length()-nom2.length()); 
            } 
            else if (nom1.length()<nom2.length()) 
            { 
                nom1 = nom1 + nom1.substring(0,nom2.length()-nom1.length()); 
            }     
            byte bytenom1[] = nom1.getBytes(); 
            byte bytenom2[] = nom2.getBytes(); 
            Totnom1=0; 
            Totnom2=0; 
            for(int i=0;i<bytenom1.length;i++) 
            { 
                        Totnom1 += bytenom1[i]; 
                        Totnom2 += bytenom2[i]; 
                } 
            Moynom1 = (Totnom1 / bytenom1.length); 
            Moynom2 = (Totnom2 / bytenom2.length); 
            cov=0; 
            var1=0; 
            var2=0; 
            for(int i=0;i<bytenom1.length;i++) 
            { 
                        cov += (bytenom1[i]-Moynom1)*(bytenom2[i]-Moynom2)/bytenom1.length; 
                var1 += (bytenom1[i]-Moynom1)*(bytenom1[i]-Moynom1)/bytenom1.length; 
                var2 += (bytenom2[i]-Moynom2)*(bytenom2[i]-Moynom2)/bytenom2.length; 
                } 
            Score=(int)(Math.max(cov/(Math.sqrt(var1)*Math.sqrt(var2))*100,-1*cov/(Math.sqrt(var1)*Math.sqrt(var2))*100)); 
            Alerte("Résultats",affnom1+" + "+affnom2+" = "+Score+"%"); 
        } 
     
        private void Alerte(String titre,String a) 
        { 
                    Alert avert = new Alert(titre, a, null, AlertType.INFO); 
                    display.setCurrent(avert); 
        } 
     
        public int nombrer(char n) 
        { 
            if (n=='a') return 1; 
            if (n=='b') return 2; 
            if (n=='c') return 3; 
            if (n=='d') return 4; 
            if (n=='e') return 5; 
            if (n=='f') return 6; 
            if (n=='g') return 7; 
            if (n=='h') return 8; 
            if (n=='i') return 9; 
            if (n=='j') return 10; 
            if (n=='k') return 11; 
            if (n=='l') return 12; 
            if (n=='m') return 13; 
            if (n=='n') return 14; 
            if (n=='o') return 15; 
            if (n=='p') return 16; 
            if (n=='q') return 17; 
            if (n=='r') return 18; 
            if (n=='s') return 19; 
            if (n=='t') return 20; 
            if (n=='u') return 21; 
            if (n=='v') return 22; 
            if (n=='w') return 23; 
            if (n=='x') return 24; 
            if (n=='y') return 25; 
            if (n=='z') return 26; 
            if (n==' ') return 0; 
            else return 0; 
        } 
     
        public void LoveCalcJour() 
        { 
     
     
            nom1=tfnom1.getString().toLowerCase().trim(); 
            affnom1=tfnom1.getString(); 
            nom2=tfnom2.getString().toLowerCase().trim(); 
            affnom2=tfnom2.getString(); 
     
            long1 = nom1.length() + 3; 
            long2 = nom2.length() + 3; 
     
            uuu=0; 
            ddd=0; 
     
            for (int i=0;i<(long1-3);i++) 
            { 
                uuu += nombrer(nom1.charAt(i)); 
            } 
     
            for (int j=0;j<(long2-3);j++) 
            { 
                ddd += nombrer(nom2.charAt(j)); 
            } 
     
            jour = Calendar.DAY_OF_MONTH; 
            mois = Calendar.MONTH; 
     
            if ((long1==3 && long2==3) || (uuu==0 || ddd==0)) 
            { 
                       Score = 0; 
                       obsrevation = "Vous n'aimez pas les scènes de ménages ?? Evitez votre moitié !!!"; 
     
            } 
            else 
            { 
                solution = (1/(140*(long1*long2+long2*long1+uuu+ddd)*(jour+1)*(mois+1)*(jour+1)*(mois+1)))+" "; 
                longsol = solution.length(); 
                int Score1 = Character.digit(solution.charAt((int)(longsol-10)), 10); 
                int Score2 = Character.digit(solution.charAt((int)(longsol-7)), 10); 
                Score=Score1*10+Score2; 
                if (Score > 0) { obsrevation="Vous n'aimez pas les scènes de ménages ?? Evitez votre moitié !!!";} 
                if (Score > 4) { obsrevation="Si vous êtes rentré(e) tard hier soir, faites-vous pardonner !";} 
                if (Score > 10) { obsrevation="Réfléchissez bien : n'avez vous pas oublié son anniversaire, sa fête, ou autre chose ?";} 
                if (Score > 20) { obsrevation="L'amour fou, c'est pas pour aujourd'hui, retentez votre chance demain.";} 
                if (Score > 40) { obsrevation="Journée sans nuage, mais sans grand soleil non plus. Vous l'aimez ? Offrez lui des fleurs";} 
                if (Score == 51) { obsrevation="51 ? Tiens donc... Les soirées trop arrosées, vous aimez ça ? Pas votre dulciné(e) apparemment, alors 2 aspirines et au lit !";} 
                if (Score > 51) { obsrevation="Belle journée sur votre couple, mais ne comptez pas sur une grande déclaration d'amour de la part de votre amour.";} 
                if (Score == 69) { obsrevation="69 ? Et bien... Envie d'un calin olé olé? C'est le moment de vous dépenser sans compter.";} 
                if (Score > 69) { obsrevation="Un conseil pour terminer cette belle journée comme vous l'avez commencée : dîner romantique et ballade en amoureux.";} 
                if (Score > 80) { obsrevation="Vous l'aimez passionnément ? Lui (ou elle) aussi, alors si vous ne l'avez pas encore fait, c'est le jour ou jamais de lui avouer.";} 
                if (Score > 90) { obsrevation="Si vous ne l'avez pas encore demandé(e) en mariage, respirez profondément et jetez-vous à l'eau, c'est le moment.";} 
            } 
            Alerte("Résultats",affnom1+" + "+affnom2+" : "+Score+"%"+" --> "+obsrevation); 
     
        } 
     
        public void startApp() 
        { 
                display = Display.getDisplay(this); 
                bcalc.setDefaultCommand(CMD_GO); 
                bcalc.setItemCommandListener(this); 
                f1.append(tfnom1); 
                f1.append(tfnom2); 
                f1.append(bcalc); 
                f1.addCommand(CMD_EXIT); 
                f1.setCommandListener(this); 
                display.setCurrent(f1); 
          } 
     
     
          public void pauseApp() 
          { 
          } 
     
     
          public void destroyApp(boolean unconditional) 
          { 
          } 
     
          public void commandAction(Command c, Item item) 
          { 
              if (c == CMD_GO) 
            { 
                LoveCalcJour(); 
                } 
        } 
          public void commandAction(Command c, Displayable d) 
        { 
                destroyApp(false); 
                    notifyDestroyed(); 
        }              
     
    }
    Merci de m'aider

  2. #2
    BiM
    BiM est déconnecté
    Expert confirmé
    Avatar de BiM
    Femme Profil pro
    Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
    Inscrit en
    Janvier 2005
    Messages
    7 796
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

    Informations forums :
    Inscription : Janvier 2005
    Messages : 7 796
    Par défaut
    Super... sinon c'est quoi les erreurs à la compilation ?

    PS : Nous ne sommes pas des compilateurs intégrés...

  3. #3
    Membre éclairé
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    94
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 94
    Par défaut

  4. #4
    Membre averti
    Inscrit en
    Juillet 2005
    Messages
    24
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 24
    Par défaut
    bonsoir,

    oui chui d'accord avec vous .. mais j'ai à peu prés 32erreurs .. et ils sont toutes relatives à J2ME.. c'est que j'arrive pas à compiler avec

  5. #5
    BiM
    BiM est déconnecté
    Expert confirmé
    Avatar de BiM
    Femme Profil pro
    Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
    Inscrit en
    Janvier 2005
    Messages
    7 796
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

    Informations forums :
    Inscription : Janvier 2005
    Messages : 7 796
    Par défaut
    Commençons par les trois premières.

    PS : il ne faut pas s'affoler sur le nombre d'erreurs, souvent la première est la cause de toutes les erreurs suivantes.

  6. #6
    Membre averti
    Inscrit en
    Juillet 2005
    Messages
    24
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 24
    Par défaut
    voilà ttes les erreurs que j'ai et je crois que c'est du au package
    javax.microedition.midlet.*
    javax.microedition.lcdui.*
    qui ne trouve pas quoique j'ai installé le J2ME aussi ..
    et si vous confirmez que c'est le cas dites moi comment compilé avec les deux JDK et J2ME en meme temps

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    --------------------Configuration: Jd - JDK version 1.5.0_03 <Default> - <Default>--------------------
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:1: package javax.microedition.midlet does not exist
    import javax.microedition.midlet.*; 
    ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:2: package javax.microedition.lcdui does not exist
    import javax.microedition.lcdui.*; 
    ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:8: cannot find symbol
    symbol: class MIDlet
        extends MIDlet 
                ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:9: cannot find symbol
    symbol: class CommandListener
        implements CommandListener, ItemCommandListener 
                   ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:9: cannot find symbol
    symbol: class ItemCommandListener
        implements CommandListener, ItemCommandListener 
                                    ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:11: cannot find symbol
    symbol  : class Display
    location: class LoveCalc2
        public Display display; 
               ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:12: cannot find symbol
    symbol  : class Command
    location: class LoveCalc2
        public Command CMD_GO = new Command("Calculer", Command.ITEM, 1); 
               ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:13: cannot find symbol
    symbol  : class Command
    location: class LoveCalc2
        public Command CMD_EXIT = new Command("Quitter", Command.EXIT, 1); 
               ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:14: cannot find symbol
    symbol  : class Form
    location: class LoveCalc2
        public Form f1 = new Form("LoveCalc"); 
               ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:15: cannot find symbol
    symbol  : class TextField
    location: class LoveCalc2
        public TextField tfnom1 = new TextField("Premier prénom : ","",30,TextField.ANY); 
               ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:16: cannot find symbol
    symbol  : class TextField
    location: class LoveCalc2
        public TextField tfnom2 = new TextField("Deuxième prénom : ","",30,TextField.ANY); 
               ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:17: cannot find symbol
    symbol  : class StringItem
    location: class LoveCalc2
        public StringItem bcalc = new StringItem("", "Calculer", Item.BUTTON); 
               ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:197: cannot find symbol
    symbol  : class Command
    location: class LoveCalc2
          public void commandAction(Command c, Item item) 
                                    ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:197: cannot find symbol
    symbol  : class Item
    location: class LoveCalc2
          public void commandAction(Command c, Item item) 
                                               ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:204: cannot find symbol
    symbol  : class Command
    location: class LoveCalc2
          public void commandAction(Command c, Displayable d) 
                                    ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:204: cannot find symbol
    symbol  : class Displayable
    location: class LoveCalc2
          public void commandAction(Command c, Displayable d) 
                                               ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:12: cannot find symbol
    symbol  : class Command
    location: class LoveCalc2
        public Command CMD_GO = new Command("Calculer", Command.ITEM, 1); 
                                    ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:12: cannot find symbol
    symbol  : variable Command
    location: class LoveCalc2
        public Command CMD_GO = new Command("Calculer", Command.ITEM, 1); 
                                                        ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:13: cannot find symbol
    symbol  : class Command
    location: class LoveCalc2
        public Command CMD_EXIT = new Command("Quitter", Command.EXIT, 1); 
                                      ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:13: cannot find symbol
    symbol  : variable Command
    location: class LoveCalc2
        public Command CMD_EXIT = new Command("Quitter", Command.EXIT, 1); 
                                                         ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:14: cannot find symbol
    symbol  : class Form
    location: class LoveCalc2
        public Form f1 = new Form("LoveCalc"); 
                             ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:15: cannot find symbol
    symbol  : class TextField
    location: class LoveCalc2
        public TextField tfnom1 = new TextField("Premier prénom : ","",30,TextField.ANY); 
                                      ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:15: cannot find symbol
    symbol  : variable TextField
    location: class LoveCalc2
        public TextField tfnom1 = new TextField("Premier prénom : ","",30,TextField.ANY); 
                                                                          ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:16: cannot find symbol
    symbol  : class TextField
    location: class LoveCalc2
        public TextField tfnom2 = new TextField("Deuxième prénom : ","",30,TextField.ANY); 
                                      ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:16: cannot find symbol
    symbol  : variable TextField
    location: class LoveCalc2
        public TextField tfnom2 = new TextField("Deuxième prénom : ","",30,TextField.ANY); 
                                                                           ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:17: cannot find symbol
    symbol  : class StringItem
    location: class LoveCalc2
        public StringItem bcalc = new StringItem("", "Calculer", Item.BUTTON); 
                                      ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:17: cannot find symbol
    symbol  : variable Item
    location: class LoveCalc2
        public StringItem bcalc = new StringItem("", "Calculer", Item.BUTTON); 
                                                                 ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:81: cannot find symbol
    symbol  : class Alert
    location: class LoveCalc2
                    Alert avert = new Alert(titre, a, null, AlertType.INFO); 
                    ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:81: cannot find symbol
    symbol  : class Alert
    location: class LoveCalc2
                    Alert avert = new Alert(titre, a, null, AlertType.INFO); 
                                      ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:81: cannot find symbol
    symbol  : variable AlertType
    location: class LoveCalc2
                    Alert avert = new Alert(titre, a, null, AlertType.INFO); 
                                                            ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:176: cannot find symbol
    symbol  : variable Display
    location: class LoveCalc2
                display = Display.getDisplay(this); 
                          ^
    D:\Mes Documents\Etudes\JDBC\Jd\LoveCalc2.java:207: cannot find symbol
    symbol  : method notifyDestroyed()
    location: class LoveCalc2
                    notifyDestroyed(); 
                    ^
    32 errors
     
    Process completed.

  7. #7
    Membre averti
    Inscrit en
    Juillet 2005
    Messages
    24
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 24
    Par défaut j'arrive pas compiler cette applet
    est ce que qqun peut m'aider

  8. #8
    Membre expérimenté Avatar de xxaragornxx
    Profil pro
    Inscrit en
    Mars 2003
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2003
    Messages : 241
    Par défaut
    Bonjour,
    avec quoi essaies-tu de compiler ? Sous quel environnement ?

  9. #9
    Membre averti
    Inscrit en
    Juillet 2005
    Messages
    24
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 24
    Par défaut
    j'utilise "JCreator" comme éditeur
    j'essaye de la compiler avec le JDK et ça marche pas
    j'ai installé le J2ME et ça marche tjs pas .. je sais pas si on le prends en compte ou pas ..

  10. #10
    Membre expérimenté Avatar de xxaragornxx
    Profil pro
    Inscrit en
    Mars 2003
    Messages
    241
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2003
    Messages : 241
    Par défaut
    Le code J2ME est destiné à ête compilé pour un Machine Virtuelle particulière. Sun propose donc tout un environnement particulier pour ceci.
    Je n'y connais pas grand chose, pour ne pas dire rien.
    Cela dit, tu devrais regarder les cours et tutoriels pour bien apprendre Java : http://java.developpez.com/cours/

    Elle explique bien la mise en place de tout l'environnement de dev.

  11. #11
    BiM
    BiM est déconnecté
    Expert confirmé
    Avatar de BiM
    Femme Profil pro
    Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
    Inscrit en
    Janvier 2005
    Messages
    7 796
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

    Informations forums :
    Inscription : Janvier 2005
    Messages : 7 796
    Par défaut
    Toutes les erreurs viennent du fait qu'il ne trouve pas ces deux packages :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    Sous JCreator, il faut que tu ajoutes les jar ou les dossiers qui contiennent ces packages.
    Configure -> Options -> JDK Profiles -> Tu prend celui existant -> Edit -> Dans l'onglet Classes -> Add -> Path si ces packages sont dans un dossier -> Archive s'ils sont dans un jar

Discussions similaires

  1. Bonjour je n'arrive pas a compiler mon deuxiéme prog sous python tiré d'un bouquin
    Par lalouvesijetattrape dans le forum Général Python
    Réponses: 2
    Dernier message: 03/01/2009, 22h52
  2. j'arrive pas a compiler mon projet web
    Par a_tewfik dans le forum Débuter
    Réponses: 5
    Dernier message: 27/03/2008, 15h43
  3. Je n'arrive pas à compiler sous JAVA
    Par flolinuxien dans le forum Linux
    Réponses: 3
    Dernier message: 22/09/2006, 21h26
  4. Je n'arrive pas a compiler ODE
    Par Happy dans le forum ODE
    Réponses: 12
    Dernier message: 26/01/2006, 18h19
  5. N'arrive pas a compiler
    Par vodevil dans le forum MFC
    Réponses: 3
    Dernier message: 21/08/2005, 20h39

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo