|
-
Nov 24th, 2000, 04:36 PM
#1
Thread Starter
Dazed Member
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.
-
Nov 24th, 2000, 04:51 PM
#2
Monday Morning Lunatic
Is "c:\" in your %CLASSPATH%?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 24th, 2000, 05:42 PM
#3
Thread Starter
Dazed Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|