Skip to main content

jsr 135

4 replies [Last post]
javaandcoffee
Offline
Joined: 2007-12-13
Points: 0

I have downloaded jsr-135 but there are only html files in the package.
And i can't use this api.
Where can i find jar file for direct using this lib or are there any way for converting these html files to jar?
Because this is not unique jsr like this?
Can you give me a link where i can download directly?
Please, help!
Thanks!

Note:I use cdc.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sfitzjava
Offline
Joined: 2003-06-15
Points: 0

This is the MMAPI, and if you are using the WTK or have it installed you can find in the bin directory a mmapi.jar file. You said you are doing CDC, so I'm not sure if the SunJavaToolkit 1.0 for CDC has it in the install package, but the WTK2.5.2 for CLDC does, and should be able to be used within a CDC build.

-Shawn

javaandcoffee
Offline
Joined: 2007-12-13
Points: 0

Thanks a lot!
And another question...I have written an example(using cdc creme platform) for trying like below:

[i]
try{
Player mediaPlayer = Manager.createPlayer("c:/bailey.mpg");
mediaPlayer.realize();
mediaPlayer.start();
}catch(Exception e){
e.printStackTrace();
}[/i]

But I get Null PointerException after running.I suppose the file format is incorrect.
Because the error is emerged on the "mediaPlayer.realize();" line.

I am not sure.Can you help?
Thanks...

peppyb
Offline
Joined: 2007-10-11
Points: 0

Hi,
Add file:/// before a filename. So in this case it would be file:///c:/bailey.mpg.

Greetz,
Peppy

javaandcoffee
Offline
Joined: 2007-12-13
Points: 0

Hi,
Thanks for your reply,but unfortunately it throws the error below :

[i][b]Exception occurred during event dispatching:

java.lang.NullPointerException

at cdcmmapi.Main.jButton2ActionPerformed()

at cdcmmapi.Main.access$100()

at cdcmmapi.Main$3.actionPerformed()

at javax.swing.AbstractButton.fireActionPerformed()

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed()

at javax.swing.DefaultButtonModel.fireActionPerformed()

at javax.swing.DefaultButtonModel.setPressed()

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased()

at java.awt.Component.processMouseEvent()

at java.awt.Component.processEvent()

at java.awt.Container.processEvent()

at java.awt.Component.dispatchEventImpl()

at java.awt.Container.dispatchEventImpl()

at java.awt.Component.dispatchEvent()

at java.awt.LightweightDispatcher.retargetMouseEvent()

at java.awt.LightweightDispatcher.processMouseEvent()

at java.awt.LightweightDispatcher.dispatchEvent()

at java.awt.Container.dispatchEventImpl()

at java.awt.Window.dispatchEventImpl()

at java.awt.Component.dispatchEvent()

at java.awt.EventDispatchThread.run()[/b][/i]