Problem accessing zip file

I’m trying to access a zip file located in my Models file with the following code.

private void createEnemy(float x, float y, float z) {
	assetManager.registerLocator("assets/Models/", ZipLocator.class);
	Spatial enemy = assetManager.loadModel("main.scene");
	CollisionShape shape = CollisionShapeFactory.createMeshShape(enemy);
	RigidBodyControl phys = new RigidBodyControl(shape, 0.5f);

When I attempt to create my spatial I get a runtime error: AssetNotFoundException: main.scene

What do I need to type to access the zip file when making my spatial?



Remember that there will be no assets folder in a final deployment. If you are going to use a zip, do not put it in the assets folder. Otherwise, you will likely get errors about a missing file.