Hi all, I am trying to develop a space shooter and use a midi sound file as background music, i succesfully managed this when emulating using Java's Wireless Toolkit but failed when using Nokia's Developer Suite's default 6310i emulator, could someone point out whats the problem? I will post my code below:
------------------------------------------------------------------------------------
public void commandAction(Command c, Displayable d)
{
if(c == quitCommand)
{
try
{
player.stop();
}
catch(MediaException me)
{}
midlet.quit();
}
else if(c == startCommand)
{
start();
removeCommand(startCommand);
addCommand(pauseCommand);
try
{
InputStream is = getClass().getResourceAsStream("/test.mid");
try
{
player = Manager.createPlayer(is, "audio/midi");
}
catch(IOException e)
{}
player.start();
}
catch(MediaException me)
{}
}
}
------------------------------------------------------------------------------------
the error messsage showed is "Nokia 6310i MIDP SDK 1.1 <default>: Cannot create class in system package"
but i think i included what is required( import javax.microedition.media.*, why is this happening, could somebody help? Many thanx!!
Jin Kai

, why is this happening, could somebody help? Many thanx!!
Reply With Quote

