exception in thread main java.java.lang.no class deffound error:filename-?
821666
May be ur stored the file in a different package name , in that case u need to execute the java command as\n\n                      java pkgname.filename\n\n\n  or if it is in a different folder thn change the current directory to that folder and execute from there
143195
You may not have JAVA installed.
555904
Try downloading the latest java uipdate (VJM I think - Virtual Java Machine).
696919
http://www.java.com/en/download/help/index_error.xml\n\nhere is a site that may have an answer to your problem
989827
"debugging error" ??? , no
162412
System.out is indeed an instance of java.io.PrintStream.  println() is a member function of java.io.PrintStream, but you're calling println() you're actually working with java.lang.System.out (which is a PrintStream, but Java already knows that, so you don't need to import PrintStream to show it).  \n\nPerhaps it would be helpful to you to understand what Java actually does with import statements.  They are *not* used to give the program access to different pieces of code.  It is tempting (especially for C/C++ programmers) to think that import statements are a mechanism for including other code files, but they are really more like C++ "using namespace" statements.  Java import statements have exactly one function: to save you typing.  You can take any program and remove all the import statements without breaking it, so long as you're willing to use the full names of all of your classes.\n\nJava's technique for deciding which files it needs to use is rather interesting.  Since all public classes are in files of the same name, Java can easily find any class by looking for a file named "name.java" (or name.class if compiled).  The dots between the package names are used to separate directories.\n\nOf course, if you wanted to pass something System.out as an argument, you'd need to use java.io.PrintStream as the parameter type (or import java.io.PrintStream).
790591
There could be many problems here.  Your description is a bit sketchy and I'm not certain what compiler you're using or if that is the error message verbatim.  \n\nThings to try here:\n1).  If it is telling you that no exe was created, then nothing is wrong with the compiler, just the code being compiled.\n\n2). If it appears the compiler isn't running, try looking in the output directory for a file with the same name as your code and the extension .obj.  If it isn't there, the compiler itself didn't run.\n\n3). The linker may not be creating the exe if it can't find the .lib or .a files in the library subdirectory.  Open that directory manually and check to see that the files exist and have greater than zero size.  \n\n4). Some compiler IDEs(Integrated Development Environment) allow the user to set a filename and path to execute indepently of the other directory settings.  Check to see if yours is one that will, and if so, then follow the documentation to manually check that the selected compiler file is indeed the compiler executable.\n\nThese are all the errors that I can think of from what little I understand of your question.  In the future, I'd reccommend giving more (all if unsure!) details in the question.  No one ever got a worse answer for including too much information.\n\nAs a very last resort, I'd simply back up all my work and reinstall the compiler.  I hope this helps.
107183
I think this is best answered by an example (I don't know how to keep formatting in Yahoo! Answers, so the formatting of the code is lost)\n\nfile TestFile.java\n===================\n\nimport java.io.*;\n\npublic class TestFile {\n\n   public static void main(String[] args) {\n      String inFilename = args[0];\n      String outFilename = args[1];\n      try {\n         BufferedReader in = \n            new BufferedReader(new FileReader(inFilename));\n         FileWriter out = new FileWriter(outFilename);\n         \n         String line = in.readLine();\n         while(line != null) {\n            out.write(line + "&#92;n");\n            line = in.readLine();\n         }\n         \n         out.close();\n         in.close();\n      } \n      catch(IOException ioe) {\n         ioe.printStackTrace();\n      }\n   }\n}\n\nThis simply takes two String arguments.  The first is used as a source file, the second is used as a destination file.  Everthing in the source file is copied into the destination file.  Anything that existed in the destination file is overwritten.\n\nThe Buffered reader makes it really easy to read from text files.  As you can see opening a file is as easy as creating a new instance of a FileReader or FileWriter.  Take a look at the Javadocs for these classes for more information.\n\nSince Java is a cross-platform language, you should add extra code for handling a file regardless of the operating system, but this should get you started.
277785
You first need to import the class (or classes) and then you will be able to use their methods or  create objects with those classes.\n\nexample: import java.util.*
301283
Start it from program files .what is the error u get
1123941
MyComputer--> properties--->advanced--->Environmental var--->\ncsystem variable-->new-->\njava_home="ur jdk installed directory"i.e c:&#92;j2sdk1.4(only)\nok
739911
I think the problem is you might have used some dll or componenst bin ur program but have not included inyour installation file.\n\nAlso many errors comes when we install the software from installation file.In this case check your code and try tto do exception handling to locate unhandaled exception.
30829
You may need Java.  Download a Java update.
73604
try to download JAVA.
11294
Unless you write or use a special or custom class loader class files are loaded from the CLASSPATH. The can be defined as a environment variable or you can pass it in as a option to the java runtime. So you don't actually "register" when usuing just the JVM. If using some Java J2EE applicaitons / servers they will provide a configuration or installation aide that will build the classpath for you. Without knowing what environment your running on / using I can only point you to the -classpath option at the command line.\n\nCheers, good luck
52727
public class ABCImplentation implements ABC {\n  public void someMethod() throws Exception {\n  }\n}
1129097
This is easy.  You don't have a JVM (Java Virtual Machine).  You can't see the java applets.  Go to java.com or Sun Java and download a JVM.  Then change your settings to what it recommends at the sites Troubleshooting or FAQ page.