Java recompilation probleme
Résolu/Fermé
leblogueur
Messages postés
199
Date d'inscription
dimanche 6 décembre 2009
Statut
Membre
Dernière intervention
23 novembre 2012
-
22 déc. 2011 à 00:29
leblogueur Messages postés 199 Date d'inscription dimanche 6 décembre 2009 Statut Membre Dernière intervention 23 novembre 2012 - 22 déc. 2011 à 22:30
leblogueur Messages postés 199 Date d'inscription dimanche 6 décembre 2009 Statut Membre Dernière intervention 23 novembre 2012 - 22 déc. 2011 à 22:30
A voir également:
- Java recompilation probleme
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel football - Télécharger - Jeux vidéo
- Java apk - Télécharger - Langages
- Java décompiler - Télécharger - Langages
- Waptrick jeux pes 2016 java - Forum logiciel systeme
2 réponses
KX
Messages postés
16753
Date d'inscription
samedi 31 mai 2008
Statut
Modérateur
Dernière intervention
25 novembre 2024
3 019
22 déc. 2011 à 01:53
22 déc. 2011 à 01:53
Tu dois recompiler le code source de ta partie de programme en utilisant les fichiers .class déjà compilés comme des librairies externes. Par contre plutôt que de faire ta manipulation avec 7zip, je recréerai directement un nouveau jar bien propre.
Pour plus de détails sur la manipulation (au besoin), dis-nous quel IDE tu utilises.
Pour plus de détails sur la manipulation (au besoin), dis-nous quel IDE tu utilises.
leblogueur
Messages postés
199
Date d'inscription
dimanche 6 décembre 2009
Statut
Membre
Dernière intervention
23 novembre 2012
12
22 déc. 2011 à 03:54
22 déc. 2011 à 03:54
J'utilise éclipse et j'ai déjà essayez cette méthode il me manque toujours plein de variable il y des trentaine d'erreur. et toujours le même résultat
car voici les ligne qui m'embête après la compilation.
enfaite se sont toute les lignes, rien n'ai compiler:
public class zb
{
private boolean b;
private int c;
private double d;
private double e;
private double f;
private double g;
private double h;
float a;
public zb(ry ry1, String s)
{
throw new Error("Unresolved compilation problems: \n\tvi cannot be resolved to a type\n\try canno" +
"t be resolved to a type\n\tbJ cannot be resolved to a variable\n\tL cannot be re" +
"solved to a variable\n\tV cannot be resolved to a variable\n\tad cannot be resol" +
"ved to a variable\n\tW cannot be resolved to a variable\n\tbW cannot be resolved" +
" to a variable\n\tk cannot be resolved to a variable\n\tL cannot be resolved to " +
"a variable\n\tpm cannot be resolved to a type\n\tbW cannot be resolved to a vari" +
"able\n\tvi cannot be resolved to a type\n\tba cannot be resolved to a variable\n" +
"\tbb cannot be resolved to a variable\n\ts cannot be resolved to a variable\n\tp" +
" cannot be resolved to a variable\n\tu cannot be resolved to a variable\n\tr can" +
"not be resolved to a variable\n\tme cannot be resolved\n\tbb cannot be resolved " +
"to a variable\n\tbb cannot be resolved to a variable\n\tbc cannot be resolved to" +
" a variable\n\tbb cannot be resolved to a variable\n\tThe method Y() is undefine" +
"d for the type zb\n\tby cannot be resolved to a variable\n\tby cannot be resolve" +
"d to a variable\n\tdk cannot be resolved to a type\n\tby cannot be resolved to a" +
" variable\n\tby cannot be resolved to a variable\n\tby cannot be resolved to a v" +
"ariable\n\tby cannot be resolved to a variable\n\tacy cannot be resolved to a va" +
"riable\n\tThe method Y() is undefined for the type zb\n\tThe method aC() is unde" +
"fined for the type zb\n\tvi cannot be resolved to a type\n\ts cannot be resolved" +
" to a variable\n\ts cannot be resolved to a variable\n\tt cannot be resolved to " +
"a variable\n\tt cannot be resolved to a variable\n\tu cannot be resolved to a va" +
"riable\n\tu cannot be resolved to a variable\n\ty cannot be resolved to a variab" +
"le\n\ty cannot be resolved to a variable\n\tz cannot be resolved to a variable\n" +
"\tz cannot be resolved to a variable\n\tThe method d(double, double, double) is " +
"undefined for the type zb\n\ty cannot be resolved to a variable\n\tz cannot be r" +
"esolved to a variable\n\tbF cannot be resolved to a variable\n\tbG cannot be res" +
"olved to a variable\n\tme cannot be resolved\n\tv cannot be resolved to a variab" +
"le\n\tv cannot be resolved to a variable\n\tx cannot be resolved to a variable\n" +
"\tx cannot be resolved to a variable\n\tw cannot be resolved to a variable\n\tD " +
"cannot be resolved to a variable\n\tThe method ag() is undefined for the type zb" +
"\n\tD cannot be resolved to a variable\n\tThe method ag() is undefined for the t" +
"ype zb\n\tbG cannot be resolved to a variable\n\tbG cannot be resolved to a vari" +
"able\n\taV cannot be resolved to a variable\n\taV cannot be resolved to a variab" +
"le\n\tdk cannot be resolved to a type\n\tdk cannot be resolved to a type\n\tby c" +
"annot be resolved to a variable\n\tby cannot be resolved to a variable\n\tby can" +
"not be resolved to a variable\n"
);
}
protected void aF()
{
throw new Error("Unresolved compilation problem: \n\tL cannot be resolved to a variable\n");
}
public boolean a(pm pm1, int i)
{
throw new Error("Unresolved compilation problem: \n\tpm cannot be resolved to a type\n");
}
public void a(double d1, double d2, double d3, float f1,
float f2, int i)
{
throw new Error("Unresolved compilation problem: \n");
}
public void a()
{
throw new Error("Unresolved compilation problems: \n\tbW cannot be resolved to a variable\n\tvi c" +
"annot be resolved to a type\n\tba cannot be resolved to a variable\n\tbb cannot " +
"be resolved to a variable\n\ts cannot be resolved to a variable\n\tp cannot be r" +
"esolved to a variable\n\tu cannot be resolved to a variable\n\tr cannot be resol" +
"ved to a variable\n\tme cannot be resolved\n\tbb cannot be resolved to a variabl" +
"e\n\tbb cannot be resolved to a variable\n\tbc cannot be resolved to a variable\n" +
"\tbb cannot be resolved to a variable\n\tThe method Y() is undefined for the typ" +
"e zb\n\tby cannot be resolved to a variable\n\tby cannot be resolved to a variab" +
"le\n\tdk cannot be resolved to a type\n\tby cannot be resolved to a variable\n\t" +
"by cannot be resolved to a variable\n\tby cannot be resolved to a variable\n\tby" +
" cannot be resolved to a variable\n\tacy cannot be resolved to a variable\n\tThe" +
" method Y() is undefined for the type zb\n\tThe method aC() is undefined for the" +
" type zb\n"
);
}
public float i_()
{
throw new Error("Unresolved compilation problem: \n");
}
public void c()
{
throw new Error("Unresolved compilation problems: \n\tvi cannot be resolved to a type\n\ts cannot" +
" be resolved to a variable\n\ts cannot be resolved to a variable\n\tt cannot be " +
"resolved to a variable\n\tt cannot be resolved to a variable\n\tu cannot be reso" +
"lved to a variable\n\tu cannot be resolved to a variable\n\ty cannot be resolved" +
" to a variable\n\ty cannot be resolved to a variable\n\tz cannot be resolved to " +
"a variable\n\tz cannot be resolved to a variable\n\tThe method d(double, double," +
" double) is undefined for the type zb\n\ty cannot be resolved to a variable\n\tz" +
" cannot be resolved to a variable\n\tbF cannot be resolved to a variable\n\tbG c" +
"annot be resolved to a variable\n\tme cannot be resolved\n\tv cannot be resolved" +
" to a variable\n\tv cannot be resolved to a variable\n\tx cannot be resolved to " +
"a variable\n\tx cannot be resolved to a variable\n\tw cannot be resolved to a va" +
"riable\n\tD cannot be resolved to a variable\n\tThe method ag() is undefined for" +
" the type zb\n\tD cannot be resolved to a variable\n\tThe method ag() is undefin" +
"ed for the type zb\n\tbG cannot be resolved to a variable\n\tbG cannot be resolv" +
"ed to a variable\n\taV cannot be resolved to a variable\n\taV cannot be resolved" +
" to a variable\n"
);
}
public void c(int i, int j, int k)
{
throw new Error("Unresolved compilation problems: \n\tdk cannot be resolved to a type\n\tdk canno" +
"t be resolved to a type\n\tby cannot be resolved to a variable\n\tby cannot be r" +
"esolved to a variable\n\tby cannot be resolved to a variable\n"
);
}
public void r()
{
throw new Error("Unresolved compilation problem: \n");
}
public float E()
{
throw new Error("Unresolved compilation problem: \n");
}
}
et si je dit que le programme en question est minecraft ca peut aidez :)
car j'ai cherchez des tutos, il y en a plein pour faire des mod mais avec le modloader, moi je doit modifiez un .class déjà existant.
car voici les ligne qui m'embête après la compilation.
enfaite se sont toute les lignes, rien n'ai compiler:
public class zb
{
private boolean b;
private int c;
private double d;
private double e;
private double f;
private double g;
private double h;
float a;
public zb(ry ry1, String s)
{
throw new Error("Unresolved compilation problems: \n\tvi cannot be resolved to a type\n\try canno" +
"t be resolved to a type\n\tbJ cannot be resolved to a variable\n\tL cannot be re" +
"solved to a variable\n\tV cannot be resolved to a variable\n\tad cannot be resol" +
"ved to a variable\n\tW cannot be resolved to a variable\n\tbW cannot be resolved" +
" to a variable\n\tk cannot be resolved to a variable\n\tL cannot be resolved to " +
"a variable\n\tpm cannot be resolved to a type\n\tbW cannot be resolved to a vari" +
"able\n\tvi cannot be resolved to a type\n\tba cannot be resolved to a variable\n" +
"\tbb cannot be resolved to a variable\n\ts cannot be resolved to a variable\n\tp" +
" cannot be resolved to a variable\n\tu cannot be resolved to a variable\n\tr can" +
"not be resolved to a variable\n\tme cannot be resolved\n\tbb cannot be resolved " +
"to a variable\n\tbb cannot be resolved to a variable\n\tbc cannot be resolved to" +
" a variable\n\tbb cannot be resolved to a variable\n\tThe method Y() is undefine" +
"d for the type zb\n\tby cannot be resolved to a variable\n\tby cannot be resolve" +
"d to a variable\n\tdk cannot be resolved to a type\n\tby cannot be resolved to a" +
" variable\n\tby cannot be resolved to a variable\n\tby cannot be resolved to a v" +
"ariable\n\tby cannot be resolved to a variable\n\tacy cannot be resolved to a va" +
"riable\n\tThe method Y() is undefined for the type zb\n\tThe method aC() is unde" +
"fined for the type zb\n\tvi cannot be resolved to a type\n\ts cannot be resolved" +
" to a variable\n\ts cannot be resolved to a variable\n\tt cannot be resolved to " +
"a variable\n\tt cannot be resolved to a variable\n\tu cannot be resolved to a va" +
"riable\n\tu cannot be resolved to a variable\n\ty cannot be resolved to a variab" +
"le\n\ty cannot be resolved to a variable\n\tz cannot be resolved to a variable\n" +
"\tz cannot be resolved to a variable\n\tThe method d(double, double, double) is " +
"undefined for the type zb\n\ty cannot be resolved to a variable\n\tz cannot be r" +
"esolved to a variable\n\tbF cannot be resolved to a variable\n\tbG cannot be res" +
"olved to a variable\n\tme cannot be resolved\n\tv cannot be resolved to a variab" +
"le\n\tv cannot be resolved to a variable\n\tx cannot be resolved to a variable\n" +
"\tx cannot be resolved to a variable\n\tw cannot be resolved to a variable\n\tD " +
"cannot be resolved to a variable\n\tThe method ag() is undefined for the type zb" +
"\n\tD cannot be resolved to a variable\n\tThe method ag() is undefined for the t" +
"ype zb\n\tbG cannot be resolved to a variable\n\tbG cannot be resolved to a vari" +
"able\n\taV cannot be resolved to a variable\n\taV cannot be resolved to a variab" +
"le\n\tdk cannot be resolved to a type\n\tdk cannot be resolved to a type\n\tby c" +
"annot be resolved to a variable\n\tby cannot be resolved to a variable\n\tby can" +
"not be resolved to a variable\n"
);
}
protected void aF()
{
throw new Error("Unresolved compilation problem: \n\tL cannot be resolved to a variable\n");
}
public boolean a(pm pm1, int i)
{
throw new Error("Unresolved compilation problem: \n\tpm cannot be resolved to a type\n");
}
public void a(double d1, double d2, double d3, float f1,
float f2, int i)
{
throw new Error("Unresolved compilation problem: \n");
}
public void a()
{
throw new Error("Unresolved compilation problems: \n\tbW cannot be resolved to a variable\n\tvi c" +
"annot be resolved to a type\n\tba cannot be resolved to a variable\n\tbb cannot " +
"be resolved to a variable\n\ts cannot be resolved to a variable\n\tp cannot be r" +
"esolved to a variable\n\tu cannot be resolved to a variable\n\tr cannot be resol" +
"ved to a variable\n\tme cannot be resolved\n\tbb cannot be resolved to a variabl" +
"e\n\tbb cannot be resolved to a variable\n\tbc cannot be resolved to a variable\n" +
"\tbb cannot be resolved to a variable\n\tThe method Y() is undefined for the typ" +
"e zb\n\tby cannot be resolved to a variable\n\tby cannot be resolved to a variab" +
"le\n\tdk cannot be resolved to a type\n\tby cannot be resolved to a variable\n\t" +
"by cannot be resolved to a variable\n\tby cannot be resolved to a variable\n\tby" +
" cannot be resolved to a variable\n\tacy cannot be resolved to a variable\n\tThe" +
" method Y() is undefined for the type zb\n\tThe method aC() is undefined for the" +
" type zb\n"
);
}
public float i_()
{
throw new Error("Unresolved compilation problem: \n");
}
public void c()
{
throw new Error("Unresolved compilation problems: \n\tvi cannot be resolved to a type\n\ts cannot" +
" be resolved to a variable\n\ts cannot be resolved to a variable\n\tt cannot be " +
"resolved to a variable\n\tt cannot be resolved to a variable\n\tu cannot be reso" +
"lved to a variable\n\tu cannot be resolved to a variable\n\ty cannot be resolved" +
" to a variable\n\ty cannot be resolved to a variable\n\tz cannot be resolved to " +
"a variable\n\tz cannot be resolved to a variable\n\tThe method d(double, double," +
" double) is undefined for the type zb\n\ty cannot be resolved to a variable\n\tz" +
" cannot be resolved to a variable\n\tbF cannot be resolved to a variable\n\tbG c" +
"annot be resolved to a variable\n\tme cannot be resolved\n\tv cannot be resolved" +
" to a variable\n\tv cannot be resolved to a variable\n\tx cannot be resolved to " +
"a variable\n\tx cannot be resolved to a variable\n\tw cannot be resolved to a va" +
"riable\n\tD cannot be resolved to a variable\n\tThe method ag() is undefined for" +
" the type zb\n\tD cannot be resolved to a variable\n\tThe method ag() is undefin" +
"ed for the type zb\n\tbG cannot be resolved to a variable\n\tbG cannot be resolv" +
"ed to a variable\n\taV cannot be resolved to a variable\n\taV cannot be resolved" +
" to a variable\n"
);
}
public void c(int i, int j, int k)
{
throw new Error("Unresolved compilation problems: \n\tdk cannot be resolved to a type\n\tdk canno" +
"t be resolved to a type\n\tby cannot be resolved to a variable\n\tby cannot be r" +
"esolved to a variable\n\tby cannot be resolved to a variable\n"
);
}
public void r()
{
throw new Error("Unresolved compilation problem: \n");
}
public float E()
{
throw new Error("Unresolved compilation problem: \n");
}
}
et si je dit que le programme en question est minecraft ca peut aidez :)
car j'ai cherchez des tutos, il y en a plein pour faire des mod mais avec le modloader, moi je doit modifiez un .class déjà existant.
KX
Messages postés
16753
Date d'inscription
samedi 31 mai 2008
Statut
Modérateur
Dernière intervention
25 novembre 2024
3 019
22 déc. 2011 à 06:17
22 déc. 2011 à 06:17
"il me manque toujours plein de variable il y des trentaine d'erreur" : montre nous le code complet et les erreurs que t'affichent Eclipse (clique sur Run [Ctrl+F11], puis Proceed)
Mais rien que dans ce code, il n'y a pas grand chose de correct ! Déjà il n'est pas normal d'avoir throw comme comportement normal de méthode, cela signifie qu'une fois ton programme lancé, il va planter ! De plus les méthodes qui n'ont pas void comme type de retour doivent renvoyer un résultat, ici tu n'as jamais de return ! Enfin, tes variables privées ne servent à rien vu que tu ne t'en sers pas.
Mais rien que dans ce code, il n'y a pas grand chose de correct ! Déjà il n'est pas normal d'avoir throw comme comportement normal de méthode, cela signifie qu'une fois ton programme lancé, il va planter ! De plus les méthodes qui n'ont pas void comme type de retour doivent renvoyer un résultat, ici tu n'as jamais de return ! Enfin, tes variables privées ne servent à rien vu que tu ne t'en sers pas.
leblogueur
Messages postés
199
Date d'inscription
dimanche 6 décembre 2009
Statut
Membre
Dernière intervention
23 novembre 2012
12
22 déc. 2011 à 22:30
22 déc. 2011 à 22:30
NN ca c'est mon code source après compilation et tkt g réussi :)
pour finir
Merci comme même a+
pour finir
Merci comme même a+