• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Class and or path confusion.

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
PATH=C:\WINNT\SYSTEM32;C:\WINNT;C:\WINNT\SYSTEM32\WBEM;C:\PROGRAM FILES\INFORMIX\BIN;C:\JDK1.1.8\bin;c:\vslick\win;C:\JDK1.1.8\BIN;
C:\j2sdk1.4.1_01;C:\j2sdk1.4.1_01\lib;c:\j2sdk1.4.1_01\bin
CLASSPATH=.;C:\java;C:\j2sdk1.4.1_01;C:\jdk1.1.8;c:\jdk1.1.8\bin
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic