🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #887

"java.util"... Where is it?

#887
From: Douglas Garstang
Date: Sat, 15 Apr 2000 00:00
33 lines
2291 bytes
All,

I am having a very frustrating time trying to import java.util.*.

For some reason my Windows installation of JDK (1.1.8) can't import
java.util.*. Strangely I did not experience this problem with the Linux
installation.

The CLASSPATH environment variable seems to be set fine because everything
else is working ok (and there is no mention of a seperate CLASSPATH entry
for java.util.* in the included installation notes).

A good example is when trying to use the Map Interface. I've tried to
compile some example code for creating a Map from the Java Tutorial at
java.sun.com. It works fine under Linux, but under Windows 98 I get:

D:\java1\Freq.java.16: Class Map not found in type declaration.
       Map m = new HashMap();
       ^

It looks like it can't find java.util.*. Thats about the only explanation I
can see.

I've spent ages hunting around java.sun.com and not come up with the
slightest bit of information regarding this problem. I've done extensive
altavista and deja searches trying to find others with the same problem but
I've had no luck.

Arrrgh! What am I missing?

Regards
Douglas Garstang
doug@pobox.com
Technical Details
Message-ID: <IGZJ4.1853$1D.14879@news-server.bigpond.net.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d6b,1c848b50a3d7dbc8,start
X-Google-Attributes: gid111d6b,public
X-Google-Thread: 10a146,1c848b50a3d7dbc8,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: 10d6db,1c848b50a3d7dbc8,start
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 113ae9,1c848b50a3d7dbc8,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: f5d71,1c848b50a3d7dbc8,start
X-Google-Attributes: gidf5d71,public
From: "Douglas Garstang" <doug@pobox.com>
Subject: "java.util"... Where is it?
Date: 2000/04/15
Message-ID: <IGZJ4.1853$1D.14879@news-server.bigpond.net.au>
X-Deja-AN: 611495007
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Complaints-To: news@bigpond.net.au
X-Trace: news-server.bigpond.net.au 955803432 144.132.128.98 (Sat, 15 Apr 2000 22:57:12 EST)
Organization: BigPond Internet Services (http://www.bigpond.net.au)
X-MSMail-Priority: Normal
NNTP-Posting-Date: Sat, 15 Apr 2000 22:57:12 EST
Newsgroups: aus.computers.java,comp.lang.java,comp.lang.java.help,comp.lang.java.misc,comp.lang.java.programmer