Results 1 to 3 of 3

Thread: importing classes and packages

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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.




  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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
  •  



Click Here to Expand Forum to Full Width