Hi ive got a problem with assigning a URL to the registerJarPath() function of the texture loader.
im getting the URL using the following code
String path = "models/default/textures";
String texPath = getClass().getResource("path").toExternalForm();
TextureLoader.tf.registerJarPath(texPath);
the variable texPath will contain something like
“jar:file:d:\MyProject\plugins\UserInterface.jar!\models\default\texture”
I’ve tried appending a “” to the end and striping off the “jar:file:” from the start and getting the root of the .jar instead of a few levels deep into it, but still i cannot get the textures to load from inside the .jar.
I can load the textures from a normal directory using registerPath() just fine so if anyone can help

