----- Original Message ----- >> From: "Vincent Bischoff" <[EMAIL PROTECTED]> >> To: <[EMAIL PROTECTED]> >> Sent: Wednesday, April 24, 2002 3:09 PM >> Subject: NoClassDefFoundError >> Bonjour, >> J'ai le message d'erreur suivant qui apparait quand je lance une appli >> de mon poste: >> java.lang.NoClassDefFoundError: NomClasse >> Exception in thread "main" >> Quelqu'un saurait il d'ou �a peut bien venir ??? >> Je n'ai par contre aucun probl�me � la compilation. >> NB: j'ai 2 jdk sur mon poste (1 dans chaque disque dur, est-ce que �a >> peut jouer ?) >> Merci. >> Vincent
Bonjour, tu tapes: java sun hello world set classpath dans google. Sur le premier site de la recherche, tu trouveras ce qui suit: Error Explanation Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp If you receive this error, java cannot find your bytecode file, HelloWorldApp.class. One of the places java tries to find your bytecode file is your current directory. So, if your bytecode file is in C:\java, you should change your current directory to that. To change your directory, type the following command at the prompt and press Enter: cd c:\javaThe prompt should change to C:\java>. If you enter dir at the prompt, you should see your .java and .class files. Now enter java HelloWorldApp again. If you still have problems, you might have to change your CLASSPATH variable. To see if this is necessary, try "clobbering" the classpath with the following command: set CLASSPATH=Now enter java HelloWorldApp again. If the program works now, you'll have to change your CLASSPATH variable. For more information, consult the section 5. Update the PATH variable in the installation instructions. Cordialement, -- hughes monget d�veloppeur [EMAIL PROTECTED] http://www.irisnet.fr
otherIcon.gif
Description: GIF image
