Débutant_compiler

perrotju Messages postés 7 Date d'inscription mercredi 3 novembre 2004 Statut Membre Dernière intervention 3 février 2006 - 13 juin 2005 à 18:37
Sandrine_87 Messages postés 5 Date d'inscription jeudi 9 juin 2005 Statut Membre Dernière intervention 17 juin 2005 - 17 juin 2005 à 17:36
Voila, je débute en Java et je bloque depuis qq temps sur un pb tout simple :


j'ai créé un fichier ESSAI_IHM.java :


import java.util.*;
import java.sql.*;
import java.util.regex.*;

public class ESSAI_IHM {



public static void main(String[] args) {
System.out.println("OK");
}

}



j'arrive à le compiler mais pas à l'interpréter:


C:\jdk1.5.0\bin>javac ESSAI_IHM.java


C:\jdk1.5.0\bin>java ESSAI_IHM
Exception in thread "main" java.lang.NoClassDefFoundError: ESSAI_IHM


C:\jdk1.5.0\bin>



Comprend pas, si qq'un pourrait m'aider ça serait sympa...

2 réponses

Twinuts Messages postés 5375 Date d'inscription dimanche 4 mai 2003 Statut Modérateur Dernière intervention 14 juin 2023 111
14 juin 2005 à 08:47
hello, tu as renseigné les variables d'environement?

WORA
0
Sandrine_87 Messages postés 5 Date d'inscription jeudi 9 juin 2005 Statut Membre Dernière intervention 17 juin 2005
17 juin 2005 à 17:36
Salut !! Je comprends pas ou est ton probleme car il fonctionne comme il faut ton programme . Enfin, ca l'affiche OK dans mon shell.
0
Rejoignez-nous