|
Answer» i m studying java programming,i m using a win 95 , I ve just installed a jdk1.2.2 compiler , but every time i want to COMPILE for example : class HalloWorld { public static void MAIN (String args[]) { system.out.println(HalloWorl !); } } ------------------------------------------------------------------------ Error can´t read .1 Error ------------------------------------------------------------------------ maybe problems with the :autoexe.bat with : PATH and CLASSPATH what can i do ? thanx Are you writing the code in notepad or are you using a Java tool for your coding.Hi John20004,
your coding is wrong. at the line system.out.println you should type System.out.println("HALLO World");
caps locks matters, and you miss out the " " inverted commas.
you need to read up some more books or visit some websites about Java.
http://java.sun.com/docs/books/tutorial/getStarted/application/index.htmlYou need Dr. Java for your JAVA IDE so you can test / compile your class.Hi John, if ur compilation error says "cannot read file" and then the filename, make sure that u have typed the classname properly. If however the problem continues make sure u set the classpath and the path in the autoexec.bat file. hope u'll succeed. sumon
|