[jsword-devel] Java Web Start and loading resources

Chris Burrell christopher at burrell.me.uk
Tue Feb 19 11:59:53 MST 2013


I haven't come across this one before. I've come across an issue in Java 7
where it starts catering for INDEX.LIST files if they are packaged into jar
dependencies whereupon it tries to get every dependency in there (the
INDEX.LIST is located under META-INF).

But if you mean resources as in the ones under src/main/resources which end
up on the classpath, I'm not entirely sure why they can't be found.

Can it be anything to do with this:
http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/faq.html#s211

The javadoc for pickLoader in CwClassLoader is a bit misleading in terms of
it saying "returns true ..." but I'm not sure I really understand the
logic. But I'm guessing it's getting the System classloader at some point
in the chain, and then you end up not finding your resources?

Why are we using our own classloader by the way?
Chris



On 19 February 2013 13:25, DM Smith <dmsmith at crosswire.org> wrote:

> We've always provided a way to run Bible Desktop directly from the web
> using Java Web Start.
>
> Now we're having problems. There's a change that prevents our code from
> finding resources. It appears that Java 7's Web Start is preventing our
> ClassLoader from loading resources.
>
> I'd greatly appreciate help finding this.
>
> I'm thinking it may be a problem in other contexts.
>
> The exact same code runs from the command line.
>
> In Him,
>         DM
>
>
>
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20130219/e3279873/attachment.html>


More information about the jsword-devel mailing list