🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3530

Re: getCodeBase() in an Application?

#3530
From: Andrew Bennett
Date: Tue, 16 Dec 1997 00:00
24 lines
1245 bytes


S.T. wrote:

> I checked the Java Dev Con and found out that one can't use
> getCodeBase() in an applet embedded in an application.  I'm trying to
> play a sound file inside my application with the line:
>
> AudioClip clip = getAudioClip(getCodeBase(), "audioclip.au");
>
> Is there any workaround for the getCodeBase() call?

Hrm.  getCodeBase() returns a URL.  So, if you hard code a URL
in the parameter to getAudioClip, it ought to work.



Andrew
--
  Andrew Bennett            ->  abennett@borland.com
  JBuilder info             ->  http://www.borland.com/jbuilder/
  JBuilder newsgroups info  ->  http://www.borland.com/newsgroups/
**** Please don't post a reply AND send email.  Do one.  I'll see it. ****
Technical Details
Message-ID: <3496EEF0.A9288CF5@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3496B1F5.8E3C758D@whc.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,2cc23b51dd5d4bac
X-Google-Attributes: gid1089d0,public
From: Andrew Bennett <abennett@borland.com>
Subject: Re: getCodeBase() in an Application?
Date: 1997/12/16
Message-ID: <3496EEF0.A9288CF5@borland.com>
X-Deja-AN: 298807637
Content-Transfer-Encoding: 7bit
References: <3496B1F5.8E3C758D@whc.net>
Content-Type: text/plain; charset=us-ascii
Organization: None
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api