| | |
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 |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card class classes client code collision columns component constructor crashcourse database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress integer intellij j2me java javadoc javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle physics plazmic print problem program project radio recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree trolltech unlimited utility webservices windows






