Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • 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\,, 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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic