[resolved] java.lang.IllegalStateException: No loader registered for type "ogg"

Hello Friends,

I’m getting the strangest error. I’ve essentially copied and pasted this class and I get the following error.

java.lang.IllegalStateException: No loader registered for type “ogg”

I’ve done this before and I can’t imagine what I did wrong here…

Here is the offending class, thanks for reading!


  • To change this template, choose Tools | Templates
  • and open the template in the editor.
    package mygame;

import com.jme3.app.Application;
import com.jme3.app.SimpleApplication;
import com.jme3.app.state.AbstractAppState;
import com.jme3.app.state.AppStateManager;
import com.jme3.asset.AssetManager;
import com.jme3.audio.AudioNode;


  • @author Bob
    public class AudioManager extends AbstractAppState {

    private SimpleApplication app;
    private AssetManager assetManager;
    private AudioNode music;

    public void initialize(AppStateManager stateManager, Application app){
    super.initialize(stateManager, app);
    this.app = (SimpleApplication) app;
    this.assetManager = this.app.getAssetManager();

    private void initAudio(){
    music = new AudioNode(assetManager, “Sounds/Song.ogg”, false);

    public void playSong() {

    public void stopSong() {


Do you use the sdk ? if not you screwed up some of the subproject dependencies.

Thanks that was it

One more thing: i think you don’t need to attach the AudioNode to rootNode to play it. I think you can simply do music.play() without attaching it.

Good luck with your project!