| | |
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 |
account android api applet application array arrays automation awt bidirectional binary birt bluetooth busy_handler(null) chat class classes client code columns component database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source plazmic print problem program programming project property recursion ria scanner search server set smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree webservices windows






