Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 244311

Summary: [launcher] [plan] Manage webstart resources outside jnlp classloader
Product: [Eclipse Project] Equinox Reporter: Andrew Niefer <aniefer>
Component: LauncherAssignee: Project Inbox <equinox.launcher-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P4 CC: Dirk.Gfroerer, jeff.myers, mseele, sunny.chan, tjwatson, zchemaly
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Andrew Niefer CLA 2008-08-15 11:14:57 EDT
See bug 240500.  Our current webstart setup relies on being able to find the cached jars on disk and is broken if we are unable to find the jars.


Two strategies that could be considered are:
1) The jars do exist in the bootclasspath, and we can get JarFile objects for them.  Perhaps the OSGi framework could run the bundles out of these JarFile objects?

And perhaps more likely:
2) If instead of listing all the jars in the jnlp file as resources, set the  property "osgi.bundles" as a list of http urls.  The framework can download and cache the jars itself.  However, the framework itself currently still needs to know its own location on disk
Comment 1 Sunny Chan CLA 2010-02-24 21:48:31 EST
From Java 6 Update 18 there is a new JNLP services called (initutively!) DownloadService2, which gives you an official way of dealing with access to the jars directly from the cache:

http://jcp.org/aboutJava/communityprocess/mrel/jsr056/index4.html

http://java.sun.com/javase/6/docs/jre/api/javaws/jnlp/javax/jnlp/DownloadService2.html

I am not sure whether you wanted to tie yourself to such a new spec update, but it would be a good idea.
Comment 2 Andrew Niefer CLA 2010-02-25 09:39:04 EST
Thanks Sunny.  Of course this we would need to fall back to existing methods if not running on that release, but it can't be any worse than the current reflection to look at a private field on ZipFile.
Comment 3 Eclipse Genie CLA 2018-12-27 04:40:03 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Thomas Watson CLA 2019-01-03 11:40:29 EST
With Java 11 removing webstart there is no plans to address webstart related bugs.