Probleme pour compiler un fichier java - Java - Programmation
MarshPosté le 18-03-2012 à 21:31:50
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
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 sans avoir les autres fichier s'il vous plait merci d'avance
Marsh Posté le 18-03-2012 à 21:31:50
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
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 sans avoir les autres fichier s'il vous plait merci d'avance
Message édité par Ockane le 18-03-2012 à 21:32:47