You Are Here:

Community: Developer Discussion Boards

#1 Old wma and the way to the handy - 2003-08-13, 16:59

Join Date: Mar 2003
Posts: 10
natrixnt
Offline
Registered User
hello,

i need a little bit help.
how is the best way to create a jar and jad for the wma app. i have use the wireless toolkit 1.0.4 and the sun one studio 4 me with the Nokia developer's suite for j2me and the nokia series 40 midp canncept sdk beta. i don't take the wma.jar as resources, but i want make a .class from my .java. The compiler say no:

import javax.wireless.messaging.*;

WmaSend.java [32:3] cannot resolve symbol
Symbol: class MessageConnection
location: WmaSend.java

i know, i don't set the wma file to the resources, when i do that i make to be infringing on the license agreement.

how can i get a jar and jad for a app to send sms?
Which tools i must use?

thanks for help and best regards

natrix
Reply With Quote

#2 Old 2003-08-13, 17:13

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
The wma.jar doesn't have to be in your app's library. It needs to be part of the JDK used. This means it has to be part of the bootclasspath when you compile. How to do this depends on your development environment (I'm not very familiar with the one you mentioned). But basically, on a command line it would look like:
Code:
javac -bootclasspath [path to wma.jar];[path to midp classes(classes.zip?)] ........ (etc)
You'll have to use a phone that already has WMA (like the 3650) to run your MIDlet.
Packaging this file with your resources would let you compile the application, but it wouldn't run because it infringes the license agreement and needs some of the methods implemented natively. You would get a "Can't create class in system package".
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia