🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8340

Re: getResourceAsStream() & ObjectInputStream()

#8340
From: Lars Thuring
Date: Sun, 01 Apr 2001 18:39
28 lines
1690 bytes
"John McGrath [TeamB]" wrote:

> On Fri, 30 Mar 2001 01:56:15 +0200, Lars Thuring wrote:
>
> > source = Map.class.getResourceAsStream("los.db");
>
> What is this Map class?  Is it java.util.Map?
>
> If so then this will try to find the "los.db" resource from the
> Java runtime jars, which I presume is not what you want.

Doh. Right on, it was using the java.util.Map  instead of own class;
prefixing it with my package name resolved it.

Thanks!

Lars

--


+---------------------------------+-------------------+
|Lars Thuring                     | "2b|!2b?" (Hamlet)|
|http://www.thuring.com           +-------------------+
|                                                     |
|"Real programmers don't use menues." (Ad in EDN 198x)|
+-----------------------------------------------------+
Technical Details
Message-ID: <3AC775D9.5CD03F0@t-online.de>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!62.226.249.132
References: <3AC3CB9E.8DE996A6@t-online.de> <MPG.152f3f58dd2ebe6798a0dd@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1bf224a5ac7c380a
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-01 11:42:04 PST
Message-ID: <3AC775D9.5CD03F0@t-online.de>
Date: Sun, 01 Apr 2001 20:39:21 +0200
From: Lars Thuring <thuring@t-online.de>
X-Mailer: Mozilla 4.71 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: getResourceAsStream() & ObjectInputStream()
References: <3AC3CB9E.8DE996A6@t-online.de> <MPG.152f3f58dd2ebe6798a0dd@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.226.249.132
X-Trace: 1 Apr 2001 11:33:34 -0800, 62.226.249.132
Lines: 30
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!62.226.249.132