PDA

Click to See Complete Forum and Search --> : importing classes and packages


Dillinger4
Nov 24th, 2000, 03:36 PM
Hi everyone,
Im doing a IO project for school and i having trouble
importing a class.

This is a method within a class named filegrabber

public static void typefile(String filename) throws IOException {
FileInputStream fin = new FileInputStream(filename);

StreamCopier.copy(fin,System.out);
fin.close();
}
}

now in order for me to use the copy method which is part
of the StreamCopier class i have to import the StreamCopier
class right? If i specify import parserproject.StreamCopier;
i get cannot resolve symbol errors and if i put in
import parserproject.*; i end up getting 1 error
cannot resolve symbol StreamCopier.copy(fin,System.out);
^
bolth classes are in the same directory C:\parserproject
so i dont understand im not able to import.

parksie
Nov 24th, 2000, 03:51 PM
Is "c:\" in your %CLASSPATH%?

Dillinger4
Nov 24th, 2000, 04:42 PM
Do you mean if i type in sysedit in thew runbox
and pull up the System Configuration Editor?

in the AutoExec.Bat i have
SET CLASSPATH=C:\Program Files\PhotoDeluxe 2.0\AdobeConnectables\
should i change this path? Im not to sure.