Well I already tried this, but no success on this. I get only black box(without my texture)!
so the part of code is here:
Texture red = new Texture(8,8, Color.RED);
TextureManager.getInstance().addTexture("red", red);
box = Primitives.getBox(10f, 1f);
box.setTexture("red");
box.setEnvmapped(Object3D.ENVMAP_ENABLED);
box.build();