Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: java programming  (Read 8530 times)

0 Members and 1 Guest are viewing this topic.

john20004

  • Guest
java programming
« on: June 14, 2004, 03:01:07 AM »
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

  • Guest
Re: java programming
« Reply #1 on: June 14, 2004, 07:14:00 AM »
Are you writing the code in notepad or are you using a Java tool for your coding.

SKy

  • Guest
Re: java programming
« Reply #2 on: July 07, 2004, 07:49:38 AM »
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

  • Guest
Re: java programming
« Reply #3 on: September 10, 2004, 10:45:50 AM »
You need Dr. Java for your JAVA IDE so you can test / compile your class.

sumon mukherjee

  • Guest
Re: java programming
« Reply #4 on: September 30, 2004, 12:56:08 PM »
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