Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2657

Re: Applets and custom cl

From a24900@googlemail.com.remove-dii-this
Subject Re: Applets and custom cl
Message-ID <1192569790.200578.291320@i38g2000prf.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <79c43c47922ec@uwe>
Date 2011-04-27 15:40 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On Oct 16, 9:52 am, "Andrew Thompson" <u32984@uwe> wrote:
> In addition to loading loose classes
> lazily, you *might* (if it makes sense) also load resources from
> Jar files lazily.  Do not add them to the archives attribute
> (obviously) and simply form a complete URL to the jar/resource
> when accessing it.

The jar is sent as a whole over the network. A web server does not
understand a URL pointing into a jar, can not extract the class or
resource out of a jar and can not individually send a class or
resource from a jar. The class loader uses a URL pointing to the whole
jar to load the whole jar if needed. Once the jar has been loaded the
class loader extracts the particular resource from it.

If you want to load individual classes or resources do not put them in
a jar.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Applets and custom cl "Qu0ll" <qu0ll@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
  Re: Applets and custom cl "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
    Re: Applets and custom cl a24900@googlemail.com.remove-dii-this - 2011-04-27 15:40 +0000
      Re: Applets and custom cl "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000

csiph-web