[JAVA] problemes fonctions static

Fermé
ganjah06 Messages postés 3 Date d'inscription mercredi 30 mars 2005 Statut Membre Dernière intervention 30 mai 2009 - 30 mars 2005 à 23:51
ganjah06 Messages postés 3 Date d'inscription mercredi 30 mars 2005 Statut Membre Dernière intervention 30 mai 2009 - 31 mars 2005 à 16:31
Salut, voilà j'ai deux fichiers:

le premier :

package forum.outils;

import javax.swing.*;

public class OutilsChaine
{

public static final String CHAINE_SUITE = " [...] ";//Constante pour les caractères de suite


public static void essai()
{
JOptionPane.showMessageDialog(null,"COUCOU !!");
}
}



le deuxieme:


package forum.utilisations;

import javax.swing.*;
import forum.outils.*;


class UtilisationChaine
{
public static void main(String[] args)
{
essai();
}
}





Lors de la compilation la jvm me dit qu'elle ne trouve pas la fonction essai().

Quelqu'un pourrait me dire pourquoi svp ??

Merci d'avance
A voir également:

2 réponses

choubaka Messages postés 39375 Date d'inscription jeudi 4 avril 2002 Statut Modérateur Dernière intervention 14 avril 2024 2 100
31 mars 2005 à 08:35
salut

package forum.utilisations; 

import javax.swing.*; 
import forum.outils.*; 


class UtilisationChaine 
{ 
public static void main(String[] args) 
{ 
OutilsChaine.essai(); 
} 
} 
0
ganjah06 Messages postés 3 Date d'inscription mercredi 30 mars 2005 Statut Membre Dernière intervention 30 mai 2009
31 mars 2005 à 16:31
Merci
0