Missing textures from 3ds-models

I'm making an applet with jME2 SimpleApplet, and found a great 3ds-model loader.

Now the problem is that in my NetBeans IDE AppletViewer the .jpg-textures on models are displaying correctly, but when I build the program and run it in the browser, the ResourceLocator doesn't find them anymore. The .jpgs are located in the very same directory under the .jar as they were in the IDE.

Is there any known solution to get around this?  :?

Here's the method to load models and textures. It loads models but no textures when deployed

    public Node buildgasa(String path) {
        Node model = null;
        String TextureDir = "models/";

        try {
            MaxToJme C1 = new MaxToJme();
            try {
                URL parentdirectory = Thread.currentThread().getContextClassLoader().getResource(TextureDir);
                ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,new SimpleResourceLocator(parentdirectory));
            } catch(Exception e) {
            ByteArrayOutputStream BO = new ByteArrayOutputStream();
            URL maxFile = modelLoad.class.getClassLoader().getResource(path);
            C1.convert(new BufferedInputStream(maxFile.openStream()),BO);
            model = (Node)BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));

            model.setModelBound(new BoundingBox());
            model.rotateUpTo(new Vector3f(0,0,-90));
        } catch (IOException e) {
        return model;