So creating the LWJGL 2.4 release.
We already added the needed Trusted-Library and stuff. Applets all good.
Then I updated the webstart…
nothing worked…
Issue 1:
Proper signed jar, proper manifest - just wouldn’t load. Cause: A Trusted-Only jar cannot be run from “sandbox” mode.
Solution: Add even though I DONT NEED it
Issue 2:
Proper signed jar, proper manifest, excess security rights. Error: java.lang.NullPointerException at com.sun.deploy.cache.CachedJarFile.findMatchingSignerIndices(Unknown Source)
Solution: Don’t use resource only jars. You must add code to jars. :persecutioncomplex:
Issue 3:
Proper signed jar, proper manifest, excess security rights, messy resources into jar where I dont want it. Error: NullPointerException when accessing said resources.
Cause: My lwjgl_test.jar (in Trusted-Only: true mode) with all my resources could not use the LWJGL util class for loading wave files because that was implemented like this:
public static WaveData create(String path) {
return create(WaveData.class.getClassLoader().getResource(path));
}
and since update 19, the extension and the application jar are no longer running in the same classloader - so there is no resource to be found.
Only about everybody is using a syntax similar to the above - including the java tutorials.
Now, security aside - why the HELL did anyone approve this piece of shit update??? Pardon my language but this has got to be the most f* up EVER point release in the history of software updates.
* Matzon shakes fist
EDIT: hang on to issue 3 - may be cause by something else … investigating … nope, its valid - fix: switch to context classloader, as per comments