Software > Computer programming
java programming
(1/1)
john20004:
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
Joleen:
Are you writing the code in notepad or are you using a Java tool for your coding.
SKy:
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.html
VietBoyVS:
You need Dr. Java for your JAVA IDE so you can test / compile your class.
sumon mukherjee:
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
Navigation
[0] Message Index
Go to full version