| | |
Question about java.lang.UnsatisfiedLinkError in MMAPI
![]() |
•
•
Join Date: Nov 2004
Posts: 189
Reputation:
Solved Threads: 0
Hello everyone,
When running the following block of source codes (the MMAPI library I am using is downloaded from http://www.sun.com/software/communitysource/j2me/mmapi/)
java.lang.UnsatisfiedLinkError will be thrown,
I am wondering how to solve this issue?
Thanks in advance,
George
When running the following block of source codes (the MMAPI library I am using is downloaded from http://www.sun.com/software/communitysource/j2me/mmapi/)
Java Syntax (Toggle Plain Text)
public static void main(String[] args) { try { Player player = Manager.createPlayer"http://localhost/sample.wav"); player.start(); } catch (MediaException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }
java.lang.UnsatisfiedLinkError will be thrown,
Java Syntax (Toggle Plain Text)
Exception occurs in thread “main� java.lang.UnsatisfiedLinkError: com/sun/mmedia/WaveOut.nOpen(IIIII)I at com.sun.mmedia.WaveOut.open(Unknown Source) at com.sun.mmedia.WavPlayer.doPrefetch(Unknown Source) at com.sun.mmedia.BasicPlayer.prefetch(Unknown Source) at com.sun.mmedia.BasicPlayer.start(Unknown Source)
I am wondering how to solve this issue?
Thanks in advance,
George
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
public static void main(String[] args) {
try {
Player player = Manager.createPlayer"http://localhost/sample.wav");
player.start();
} catch (MediaException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}could the problem be leaving out a parenthesis?
Java Syntax (Toggle Plain Text)
public static void main(String[] args) { try { Player player = Manager.createPlayer("http://localhost/sample.wav"); player.start(); } catch (MediaException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }
•
•
Join Date: Nov 2004
Posts: 189
Reputation:
Solved Threads: 0
Thanks server_crash,
Your reply is very helpful. I think you are very careful.
It is a copy&paste mistake of myself. My actual source codes are the same as you have correctly written. But it still has the exceptions which I quoted. I am wondering what is the cause of this issue and how to solve it.
regards,
George
•
•
•
•
Originally Posted by server_crash
public static void main(String[] args) { try { Player player = Manager.createPlayer"http://localhost/sample.wav"); player.start(); } catch (MediaException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }
could the problem be leaving out a parenthesis?
Java Syntax (Toggle Plain Text)
public static void main(String[] args) { try { Player player = Manager.createPlayer("http://localhost/sample.wav"); player.start(); } catch (MediaException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }
It is a copy&paste mistake of myself. My actual source codes are the same as you have correctly written. But it still has the exceptions which I quoted. I am wondering what is the cause of this issue and how to solve it.regards,
George
•
•
Join Date: Nov 2004
Posts: 189
Reputation:
Solved Threads: 0
Thanks jerbo,
I am writing an application for Foundation profile of J2ME. It is not running on PC (J2SE). Do you know how to solve this issue?
regards,
George
•
•
•
•
Originally Posted by jerbo
Is this for a mobile device? The library you downloaded is:
Micro Edition Mobile Media API Reference Implementation Version 1.0 (MMAPI)
You may be experiancing problems because you are trying to run the app as a PC app, and the library is not designed for the PC environment. Hence the Link error.
regards,
George
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
Check out this:
http://www.javakb.com/Uwe/Forum.aspx...-sound-in-J2ME
I don't know if this will help or not. I haven't had any experience working with j2me either.
http://www.javakb.com/Uwe/Forum.aspx...-sound-in-J2ME
I don't know if this will help or not. I haven't had any experience working with j2me either.
•
•
Join Date: Nov 2004
Posts: 189
Reputation:
Solved Threads: 0
Thanks server_crash,
I have read this discussion and it is very helpful. But I think this discussion is not similar to my issue. My issue is that the sound can not be played, and the discussion is dealing with how to solve delay issue (the sound can be played in this discussion). I am wondering your comments.
regards,
George
•
•
•
•
Originally Posted by server_crash
Check out this:
http://www.javakb.com/Uwe/Forum.aspx...-sound-in-J2ME
I don't know if this will help or not. I haven't had any experience working with j2me either.
regards,
George
![]() |
Other Threads in the Java Forum
- Previous Thread: stopping an application execution
- Next Thread: JComboBox -- Item is not in the list????????
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary blackberry block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working






