On Wed, 11 Oct 2000, Christ wrote:
>
> >
> > 1. Waktu compile : javac Hello.java
> > 2. Waktu run : java Hello
> >
>
> hal itu juga sudah saya lakukan...
> tapi mengapa masih errornya masih juga terjadi ?
> thx
Coba Hello.java-nya diganti dengan:
public class Hello {
public Hello() {
}
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Lalu pastikan CLASSPATH berisi ".", gunakan:
export CLASSPATH=.:/usr/local....
^ supaya kelas di current dir. bisa ditemukan oleh JVM
Oki
--
An entire generation of programmers has adopted Linux. It doesn't
matter whether they are doing this because they hate Microsoft, or
think Linux-based systems are technically superior, or just like to
hack on free software. The fact is, it's happening.
http://salon.com/tech/fsp/2000/09/12/chapter_7_part_one/index3.html
--------------------------------------------------------------------------------
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3
Pengelola dapat dihubungi lewat [EMAIL PROTECTED]