| | |
exception in thread main java .lang.NoClassDefFoundError:Abc
![]() |
Go to where the ".class" file is and type the command as
java -cp . Abc Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
A mistake by di2daer.
You're missing an import statement for FileOutputStream.
When we use java.io.*; It means any class/interface of java.io package can be used in our program file without qualify it with java.io package name.
You're missing an import statement for FileOutputStream.
When we use java.io.*; It means any class/interface of java.io package can be used in our program file without qualify it with java.io package name.
Last edited by adatapost; Jul 3rd, 2009 at 8:18 am.
Failure is not fatal, but failure to change might be. - John Wooden
![]() |
Similar Threads
- Exception in thread "main" java.lang.NoClassDefFoundError: Invaders Error (Java)
- Exception in thread "main" java.lang.noclassdef............ (Java)
- Exception in thread "main" java.lang.NoClassDefFoundError: Main/class (Java)
- java.lang.NoClassDefFoundError: ??? (Java)
- Need help with error Exception in thread "main" java.lang.Nu (Java)
- exception in thread "main" java.lang.NoClassDefFoundError (Java)
Other Threads in the Java Forum
- Previous Thread: Frame and Multiple Panel ..Need Help
- Next Thread: Read class from another class
| Thread Tools | Search this Thread |
-xlint add android applet application applications array automation bank bi binary blackberry block bluetooth class clear client code compile compiler component database development developmenthelp dice eclipse equation error event formatingtextintooltipjava fractal functiontesting game gameprogramming givemetehcodez graphics gui health html hyper idea image infinite int j2me j2seprojects java javac javame javaprojects jetbrains jni jpanel jtable julia learningresources lego linux mac main map method mobile myregfun netbeans notdisplaying number online openjavafx pearl problem program qt scanner screen scrollbar server set singleton sms sort spamblocker sql sqlserver storm string superclass swing system textfields thread threads time title tree tutorial-sample update variablebinding windows xor






