Hi-
The topic says what I am trying to do- simply play a midi on a
midp device (my cell phone). From searching the web, I see that I
probably should use "Player player = Manager.createPlayer()". I tried
this, but get the error message
ALERT: Native method 'com/sun/midp/main/Configuration::getProperty0'
not found
I got the midp sources and found com.sun.midp.main.Configuration, and
it is a native encoded class (in c). getProperty0 there. I don't
know why my ide (Netbeans) does not find it. I grep'ed through J2ME
and found getProperties0 in bin/zayit.dll, but don't know in what way
I can tell my program to find it.
I am going crazy with this (spent much of yesterday trying to
fix it). I would be thankful for any help.
thanks
-Inquirydog
Roedy Green - 07 May 2004 20:46 GMT
> The topic says what I am trying to do- simply play a midi on a
>midp device (my cell phone). From searching the web, I see that I
[quoted text clipped - 3 lines]
>ALERT: Native method 'com/sun/midp/main/Configuration::getProperty0'
>not found
any com.sun stuff your are not supposed to use directly, not that you
necessarily did.
See http://mindprod.com/jgloss/midi.html
If you can't get it to work,
for $20 I'll figure it out and write you the code.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Darryl L. Pierce - 08 May 2004 13:50 GMT
>> The topic says what I am trying to do- simply play a midi on a
>>midp device (my cell phone). <snip>
>
> See http://mindprod.com/jgloss/midi.html
Your entry in the Glossary has no information on the MIDP, which is what the
OP is using, as evidenced in the first sentence of his post.

Signature
Darryl L. Pierce <mcpierce@myrealbox.com>
Visit the Infobahn Offramp - <http://mypage.org/mcpierce>
"What do you care what other people think, Mr. Feynman?"
Darryl L. Pierce - 08 May 2004 13:50 GMT
> The topic says what I am trying to do- simply play a midi on a
> midp device (my cell phone).
What phone is it? Is it a MIDP 1.0 or MIDP 2.0 device? The MIDP 1.0 does not
have sound APIs, but most OEMs provide their own proprietary APIs.
> From searching the web, I see that I
> probably should use "Player player = Manager.createPlayer()". I tried
[quoted text clipped - 8 lines]
> and found getProperties0 in bin/zayit.dll, but don't know in what way
> I can tell my program to find it.
That's not a part of the MIDP APIs; that's part of the emulator
implementation.
> I am going crazy with this (spent much of yesterday trying to
> fix it). I would be thankful for any help.
Please tell us the phone you're targeting and the carrier.

Signature
Darryl L. Pierce <mcpierce@myrealbox.com>
Visit the Infobahn Offramp - <http://mypage.org/mcpierce>
"What do you care what other people think, Mr. Feynman?"