File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Class and or path confusion. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Class and or path confusion." Watch "Class and or path confusion." New topic

Class and or path confusion.

Bill Raterink

Joined: Sep 03, 2003
Posts: 29
Disclaimer: I'm trying to use jdk1, but loaded the j2sdk to try to run some educational samples. Now my question...
When I try to compile my class, I get about 64 errors on things that "I'm not even using". I suspect they're nested in some class I'm trying to import (C:\j2sdk1.4.1_01\java\io\,, etc), and I probably don't have something quite right either in my pathing, or WHERE I've put things. Is there some "sacred place to put things"?
My version is...(on Windows2K)
C:\Dev\Java>java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
My imports are...
import java.lang.*;
import java.awt.*;
import java.awt.event.*;
It's possible I don't really need the*, but I don't know how to tell, & it was in the sample.
My pathing is...(this may be overkill)
The errors are...
C:\j2sdk1.4.1_01\java\security\ Class not found in import.
C:\j2sdk1.4.1_01\java\io\ Variable MAX_BLOCK_SIZE can't be static in inner class BlockDataInputStream. Only members of interfaces and top-level classes can be static.
I've searched the other posts here (& elsewhere) but can't seem to find the answer on Starting at SquareOne. ; )
Thanks for the help, AND the understanding. -Bill.
I agree. Here's the link:
subject: Class and or path confusion.
It's not a secret anymore!