• Post Reply Bookmark Topic Watch Topic
  • New Topic

Class and or path confusion.

Bill Raterink
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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\ObjectInputStream.java, sun.security..., 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.io.*;
import java.lang.*;
import java.awt.*;
import java.awt.event.*;
It's possible I don't really need the java.io.*, but I don't know how to tell, & it was in the sample.
My pathing is...(this may be overkill)
The errors are...
C:\Dev\Java>javac FileEdit.java
C:\j2sdk1.4.1_01\java\security\AccessController.java:10: Class sun.security.util.Debug not found in import.
import sun.security.util.Debug;
C:\j2sdk1.4.1_01\java\io\ObjectInputStream.java:2201: Variable MAX_BLOCK_SIZE can't be static in inner class java.io.ObjectInputStream. 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!