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

Entrée/Sortie Java Discussion :

Problème pour compiler un fichier .java


Sujet :

Entrée/Sortie Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Mars 2012
    Messages
    8
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Mars 2012
    Messages : 8
    Par défaut Problème pour compiler un fichier .java
    Bonsoir voila je vous explique mon probleme.

    Je joue a un jeux qui s'apelle project zomboid et ce jeux et entierrement en anglais donc on a crée une communauté francaise et eu la permission de modifer les fichier de jeux pour faire des traduction francaise mais la il ya un probleme.

    Je voudrait compiller un fichier .java mais que un seul et voici l'erreur qu'il me sorte

    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
    C:\Users\Moi>javac CharacterCreationPanel.java
    CharacterCreationPanel.java:3: error: package zombie.core does not exist
    /*     */ import zombie.core.Core;
                                ^
    CharacterCreationPanel.java:4: error: package zombie.scripting does not exist
    /*     */ import zombie.scripting.ScriptManager;
                                     ^
    CharacterCreationPanel.java:6: error: cannot find symbol
    /*     */ public class CharacterCreationPanel extends NewWindow
                                                          ^
      symbol: class NewWindow
    CharacterCreationPanel.java:14: error: cannot find symbol
    /*  32 */     this.ResizeToFitY = false;
                      ^
      symbol: variable ResizeToFitY
    CharacterCreationPanel.java:15: error: cannot find symbol
    /*  33 */     this.visible = false;
                      ^
      symbol: variable visible
    CharacterCreationPanel.java:18: error: cannot find symbol
    /*  36 */     this.width = 750;
                      ^
      symbol: variable width
    CharacterCreationPanel.java:19: error: cannot find symbol
    /*  37 */     this.height = 570;
                      ^
      symbol: variable height
    CharacterCreationPanel.java:21: error: cannot find symbol
    /*  39 */     this.Movable = false;
                      ^
      symbol: variable Movable
    CharacterCreationPanel.java:29: error: package ScriptManager does not exist
    /*  51 */     ScriptManager.instance.Trigger("OnPreCharacterCreation");
                               ^
    CharacterCreationPanel.java:34: error: cannot find symbol
    /*  56 */     if (!isVisible()) {
                       ^
      symbol:   method isVisible()
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:37: error: cannot find symbol
    /*  59 */     super.render();
                  ^
      symbol:   variable super
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:39: error: cannot find symbol
    /*  61 */     DrawTextCentre("Creer votre personnage", getWidth() / 2, 2, 1.0F,
    1.0F, 1.0F, 1.0F);
                                                           ^
      symbol:   method getWidth()
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:41: error: cannot find symbol
    /*  64 */     DrawTextCentre("Viewer", 430, 33, 1.0F, 1.0F, 1.0F, 1.0F);
                  ^
      symbol:   method DrawTextCentre(String,int,int,float,float,float,float)
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:43: error: cannot find symbol
    /*  66 */     DrawText("Forename", 532, 31, 1.0F, 1.0F, 1.0F, 1.0F);
                  ^
      symbol:   method DrawText(String,int,int,float,float,float,float)
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:44: error: cannot find symbol
    /*  67 */     DrawText("Surname", 532, 72, 1.0F, 1.0F, 1.0F, 1.0F);
                  ^
      symbol:   method DrawText(String,int,int,float,float,float,float)
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:46: error: cannot find symbol
    /*  70 */     DrawTextRight("Face", 624, 133, 1.0F, 1.0F, 1.0F, 1.0F);
                  ^
      symbol:   method DrawTextRight(String,int,int,float,float,float,float)
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:47: error: cannot find symbol
    /*  71 */     DrawTextRight("Skin-tone", 624, 150, 1.0F, 1.0F, 1.0F, 1.0F);
                  ^
      symbol:   method DrawTextRight(String,int,int,float,float,float,float)
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:49: error: cannot find symbol
    /*  76 */     DrawText("Select a profession (many more to come in future updates
    )", 30, 194, 1.0F, 1.0F, 1.0F, 1.0F);
                  ^
      symbol:   method DrawText(String,int,int,float,float,float,float)
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:51: error: cannot find symbol
    /*  78 */     DrawTextCentre("Available traits", 438, 194, 1.0F, 1.0F, 1.0F, 1.0
    F);
                  ^
      symbol:   method DrawTextCentre(String,int,int,float,float,float,float)
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:52: error: cannot find symbol
    /*  79 */     DrawTextCentre("Chosen traits", 626, 194, 1.0F, 1.0F, 1.0F, 1.0F);
     
                  ^
      symbol:   method DrawTextCentre(String,int,int,float,float,float,float)
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:57: error: cannot find symbol
    /*  86 */     if (!isVisible()) {
                       ^
      symbol:   method isVisible()
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:60: error: cannot find symbol
    /*  89 */     super.update();
                  ^
      symbol:   variable super
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:62: error: cannot find symbol
    /*  91 */     float absY = getAbsoluteY();
                               ^
      symbol:   method getAbsoluteY()
      location: class CharacterCreationPanel
    CharacterCreationPanel.java:64: error: cannot find symbol
    /*  93 */     float val = Core.getInstance().getOffscreenHeight() - absY;
                              ^
      symbol:   variable Core
      location: class CharacterCreationPanel
    24 errors
    Donc j'aimerait bien savoir comment je peut faire pour le compiler svp

  2. #2
    Membre Expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Septembre 2008
    Messages
    1 190
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2008
    Messages : 1 190
    Par défaut
    Le problème c'est que le fichier pour compiler a besoin d'autre fichier que tu n'as visiblement pas.

  3. #3
    Membre averti
    Inscrit en
    Décembre 2010
    Messages
    39
    Détails du profil
    Informations forums :
    Inscription : Décembre 2010
    Messages : 39
    Par défaut
    Bonjour
    tu dois essayer
    javac -classpath .\zombie.core;.\zombie.scripting;... CharacterCreationPanel.java
    en modifiant .\ par le chemin des jars exemple ".\zombie.core.jar" ...
    bonne chance

  4. #4
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Mars 2012
    Messages
    8
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Mars 2012
    Messages : 8
    Par défaut
    Le probleme ses qu'il ne trouve pas le fichier et que je ne sais pas ou le trouver ni comment modifier le chemin dans la console cmd parce que sa me met part defaut C user ect ect donc voila...

  5. #5
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Mars 2012
    Messages
    8
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Mars 2012
    Messages : 8
    Par défaut
    Citation Envoyé par deathness Voir le message
    Le problème c'est que le fichier pour compiler a besoin d'autre fichier que tu n'as visiblement pas.
    Sa je le savait très bien...

  6. #6
    Expert éminent
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Par défaut
    Si tu n'a pas soit les sources, soit la version compilée de ces fichier, tu ne pourra pas compiler le .java, et de toutes façons ça ne servirais à rien d'y parvenir puisque tu ne pourrais pas le faire fonctionner.

  7. #7
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Mars 2012
    Messages
    8
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Mars 2012
    Messages : 8
    Par défaut
    Bah je doit avoir les fichier mais vue quel a ce n'est pas une version definitif je pense que ca vient de la

  8. #8
    Expert éminent
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Par défaut
    Même si ce n'est pas définitif et buggé de partout, ça doit a priori au moins compiler

Discussions similaires

  1. Problème pour renommer un fichier en Java
    Par azedine.web dans le forum Langage
    Réponses: 2
    Dernier message: 22/02/2012, 13h40
  2. [java.io.File] problème pour renommer un fichier
    Par RR instinct dans le forum Entrée/Sortie
    Réponses: 10
    Dernier message: 10/12/2010, 14h24
  3. [MEX] Problème pour compiler plusieurs fichiers
    Par Leiloche dans le forum MATLAB
    Réponses: 3
    Dernier message: 28/10/2008, 13h57
  4. [FTP] Problème pour uploader un fichier
    Par Crazyblinkgirl dans le forum Entrée/Sortie
    Réponses: 10
    Dernier message: 07/01/2008, 22h21
  5. [debutant]quoi fair pour recompiler un fichier .java
    Par nouaman dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 27/05/2004, 09h10

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