Does the JDK1.3.0_02 require a package statement at the top of
every .java file, even a simple HelloJava program??
That seems to be the case! My simple HelloJava.java program will compile but won't run in c:\java. It looks as follows:
public class HelloJava
{
public static void main(
String[] args)
{
System.out.println("Hello World from Java");
}
}
However, if I do 2 things it will run. These 2 things are:
1. add "package com.gfarms.geometry;" as the 1st line of program
2. copy HelloJava.java to c:\java\com\gfarms\geometry and
compile it there