i had entered int cmd in that md java, cd java, then javac simple.java but error:cannot read :simple.java i created my fold in cdrive
134859
Looks like ur java path and classpath is fine.\n\nYou have created a new directory called java. Its ok but before compiling simple.java make sure that simple.java is saved in that directory. \n\nThis error occurs when the java file is not in that current directory.
442541
It would be helpful if you gave more details, such as how you got the file and what it is supposed to be.  In the absence of those details your answer is either "ABBYY Finereader 4.0 Sprint" or "CDspace CD Emulator".
122865
do you have java enabled?
128295
try loading the image into your ide's source code folder that has all the .java files in it (or the bin folder that holds all the .class files), then see if its included when ur IDE builds the project into a jar file. Might work, might not.
98385
because there are some typing mistake there try this link\nhttp://collaboratory.nunet.net/cwebdocs/index.html
449148
import java.awt.*;\nimport javax.swing.*;\n//\n// A Simple Java Application that make use of the  Swing package\n//\npublic class Sample {\nprivate JFrame jF;\nprivate JPanel jP;\nprivate JButton jB;\n\npublic void go() {\njF = new JFrame("Sample");\njP = new JPanel();\njP.setBorder( BorderFactory.createEmptyBorder(30,30,30,30));\njP.setLayout(new GridLayout(0,1));\n\njB = new JButton("Click Here");\njB.setToolTipText("Please Click This Button");\n\njP.add(jB);\njF.setContentPane(jP);\n\njF.pack();\njF.setVisible(true);\n}\n\npublic static void main(String args[]) {\nSample s = new Sample();\ns.go();\n}\n}\n\n/* Save the file as Sample.java and compile. */\n/* Note the codes are for your reference only. Change it and run it to ensure you understand what each part is for. You will learn only by writing your own codes. */
340772
http://www.java.com/en/download/help/index_error.xml\n\nhere is a site that may have an answer to your problem
503288
javap -c \nprints out "diassembled" java code. Each line, that starts with a number, followed by a colon is an "instruction". Just count those lines.
144747
Seems like you have a type-o just above line 13.  in your declaration of  the Matrix class.  should be a single c in the word 'class'.\n\nIf you aren't already, you may want to consider using an IDE like netbeans which will catch simple  syntax errors like this for you before compiling.\n\nhope this helps.
657880
you need to download java or update it, just download it from official website:\nhttp://www.java.com\n\nEnjoy.
529047
Whats the problem you are facing?\n\nSet your JAVA_HOME to the directory where you have downloaded java. like C:/java\n\nGo to your environment variables and in the User Variables define\nPath   %JAVA_HOME%/bin     OR      C:/java/bin\n\nThen open a command prompt and type \njavac <and press enter> you will some options...\n\nNow your java is set up. Create a class compile and run it.
300181
Here is a simple Java Program.  You can write it in any editor.  I cannot give you exact instructions on using NetBeans, but you may have to create a Project, which is where all the files for one application are kept together.\nI have not used NetBeans, as I find it too slow to start up.\nPut this in a file named "HelloWorld.java"\npublic class HelloWorld {\nSystem.out.println("Hello World!");\n}\n\nThats it.\nThen you have to compile the file HelloWord.java  Once again, I cannot give you precise instructions for using NetBeans.  If you install the Java SDK without NetBeans, then you should be able to compile from the command line.\nTo get the command line, in winXP it is called Command Prompt. In win98, it is called MS-DOS Prompt.\nFrom the command line, navigate to the directory containing HelloWorld.java\nThen type in  'javac HelloWorld.java'\nThis should compile to a HelloWorld.class file\n\nTo run this file, for testing etc, you type the command:\njava HelloWorld\n\nIt should type out something like:\nHello World!\n\nApart from that, you may have to check the web site for NetBeans to see how it does these things.\nIf you cannot use Java on the command line, then check out the information about installing Java on the java web site.
593732
Reading inputs in CUI mode is little difficult than displaying outputs.\n\n// Reading input lines.\nInputStreamReader inStreamReader = new InputStreamReader(System.in);\nBufferedReader bufferedReader = \nnew BufferedReader(inStreamReader);\nString inputLine = stdin.readLine();\n// Displaying the line read.\nSystem.out.println("Line read: " + inputLine);\n\nFor taking inputs in GUI mode you can use swing components.\n\nYou can check up the Sun - Java - Tutorials for more details:-\nhttp://java.sun.com/docs/books/tutorial/index.html
387510
You need to make sure that there is a file called cap.java, and that the class in this file has a main() method.\n\nNext, compile the code with\njavac cap.java\n\nThis should produce cap.class\n\njava cap\n\nshould then work. \n\nOh, but I'm assuming that "." is in your classpath. If not, then java won't see stuff in the current directory. As a quick fix, try:\n\njava -classpath "."  cap\n\nand see if it starts working.
208860
i use eclipse for my java programs.. its quite simple, and gives u the exact lines where errors start..\njgrasp too works well..\ngood luck
506523
just keep the most recent one.\nthat will do,\n\nall java versions are backward comptible
282021
This command is the culprit:\nFile f2=new File("&#92;t"+dirname+"/"+s[i]);\n\n1st problem: you create a wrong path. f2 will be null, because the path doesn't make sense. Replace "&#92;t" with File.separator\n\n2nd problem: you use a inefficient way to list directories.\nyou use list() that returns array of Strings.\nuse instead listFiles(). It returns an array of file objects and you don't need to reconstruct the string paths.\n\nso your code should change to something like this:\n\nFile files[]=f1.list();\nfor(int i=0;i<files.length;i++)\n{\nFile f2=new File(files[i]);\nif(f2.isDirectory())\n{System.out.println(f2.getAbsoluteName() + "is a directory");\n}\nelse {.....}\n\ngood luck :)