Re: problem loading song.

Hello everybody, I have a problem much strange one with my game j2me when the launch through the wtk of Sun (ktoolbar) give the following errors to me that do not take place during the use of the IDE Eclipse (use execution OTA).

Thanks for the possible aid.

java.lang.IllegalArgumentException at javax.microedition.media.Manager.createPlayer(+45)



… …

Excuse-me I had forgotten to mail the code :-[

class MyMidilet entends midlet
{
MyGame theGame;



protected void startApp()
{

   ...........

   this.myThread = new Thread(theGame,"Game"); 
                    myTherad.start();

}

}

class MyGame …{

public   MyGame()
{
  ...
  .........
  .............
  

   for(i=0;i<Song.length-1;i++)
   {
      Song[i]=Manager.createPlayer(getClass().getResourceAsStream(AudioGame[i]),"audio/midi");// ecco dove si verifica l'errore 
      Song[i].realize();
      Song[i].prefetch();
   }
.........
............
..................

}

}

I have resolved the problem… ;D
In the names of the rows audio to load the capital and very small letters did not coincide.

Strange that in execution OTA is only exited outside this error. ( in WTK 2.2 Sun) >:(

bye!!!