Well I have success!!!!
Via website
http://www.kevinboone.com/classpath.html
(credit must goto another user by the name of bonnevillessei who had a simailar problem as i have)
using the command javac -classpath "" *.java it worked (ie no compile errors for Line.java).
Now with the trypackage.java i get the following errors.
javac trypackage.java
trypackage.java:7: ';' expected
double[] [] coords = { {1.0, 0.0}, {6.0, 0.0}, {6.0, 10.0}, {10.0, 10.0}, {10.0, -14.0}, {8.0, -14.0 } };
^
trypackage.java:11: illegal start of type
for(int i = 0; i < coords.length; i++)
^
trypackage.java:12: <identifier> expected
points[i] = new Point(coords[i] [0], coords[i] [1]);
^
trypackage.java:19: illegal start of type
for(int i=0; i< points.length; i++)
^
trypackage.java:21: <identifier> expected
lines[i] = new line(points[i],points[i+1}); //create a line
^
trypackage.java:22: <identifier> expected
totallength += lines[i].length; // adds it's length
^
trypackage.java:23: <identifier> expected
System.out.println("Line "+ (i+1)+' '+ lines[1] + " Length is " + lines[i].length());
^
trypackage.java:27: 'class' or 'interface' expected
System.out.println("/nTotal line length = " + totallength);
^
trypackage.java:28: 'class' or 'interface' expected
}
^
trypackage.java:29: 'class' or 'interface' expected
^
10 errors
from source code of (1st 10 lines of code).
import geometry.*; // Import Point & Line classes that are in package geometry
public class trypackage
{
public static void main(String[] args)
double[] [] coords = { {1.0, 0.0}, {6.0, 0.0}, {6.0, 10.0}, {10.0, 10.0}, {10.0, -14.0}, {8.0, -14.0 } };
//create an array of points and fill it with Point objects
Point[] points = new Point[coords.length];
What is happening here now ???
any help from those more knowlegdable would be greatly appreciated.
dave.
ps thanks to DR POMPEll for his help.