🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: aus.computers.java
4 messages
4 total messages Started by Douglas Garstang Sat, 15 Apr 2000 00:00
"java.util"... Where is it?
#887
Author: 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
Re: "java.util"... Where is it?
#888
Author: Tor Iver Wilhelmsen
Date: Sat, 15 Apr 2000 00:00
17 lines
1615 bytes
"Douglas Garstang" <doug@pobox.com> writes:

> 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.

Yes, it can. But...

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

... java.util.Map isn't in 1.1.8's classes, it's part of the
Collections API introduced in Java 1.2.

-- 
  Tor Iver Wilhelmsen                              <toriw@multinett.no>
My random .sig generator picked the t-string this time.
Re: "java.util"... Where is it?
#889
Author: Douglas Garstang
Date: Sat, 15 Apr 2000 00:00
26 lines
2065 bytes
Your kidding?

Any ideas why on earth under the 'Complete Product List' on the Sun's Java
website there is no mention of 1.2? ... only 1.1.8...

*deep breath*

Tor Iver Wilhelmsen <toriw@multinett.no> wrote in message
news:wkaeiv1q0t.fsf@mail.multinett.no...
> "Douglas Garstang" <doug@pobox.com> writes:
>
> > 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.
>
> Yes, it can. But...
>
> > D:\java1\Freq.java.16: Class Map not found in type declaration.
> >        Map m = new HashMap();
>
> ... java.util.Map isn't in 1.1.8's classes, it's part of the
> Collections API introduced in Java 1.2.
>
> --
>   Tor Iver Wilhelmsen                              <toriw@multinett.no>
> My random .sig generator picked the t-string this time.
Re: "java.util"... Where is it?
#890
Author: Douglas Garstang
Date: Sat, 15 Apr 2000 00:00
34 lines
2332 bytes
*continues to look*
Still can't find the thing...

Douglas Garstang <doug@pobox.com> wrote in message
news:PUZJ4.1862$1D.14454@news-server.bigpond.net.au...
> Your kidding?
>
> Any ideas why on earth under the 'Complete Product List' on the Sun's Java
> website there is no mention of 1.2? ... only 1.1.8...
>
> *deep breath*
>
> Tor Iver Wilhelmsen <toriw@multinett.no> wrote in message
> news:wkaeiv1q0t.fsf@mail.multinett.no...
> > "Douglas Garstang" <doug@pobox.com> writes:
> >
> > > 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.
> >
> > Yes, it can. But...
> >
> > > D:\java1\Freq.java.16: Class Map not found in type declaration.
> > >        Map m = new HashMap();
> >
> > ... java.util.Map isn't in 1.1.8's classes, it's part of the
> > Collections API introduced in Java 1.2.
> >
> > --
> >   Tor Iver Wilhelmsen                              <toriw@multinett.no>
> > My random .sig generator picked the t-string this time.
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads