Solved

J2ME Application Deployment

Posted on 2004-04-12
10
2,296 Views
Last Modified: 2011-09-20
I've made a few mobile phone applications using j2me with the Wireless Toolkit and now I'd like to deploy my application(s) to my Nokia 3200 using wap.
After doing a few wap tutorials, I managed to get a very basic page working with a link to the programs jad file on my server.
When I connect to the site using my phone and attempt to download the application, I get an error message saying "File not found" (or something along those lines).

What steps do I need to take to have my j2me apps accessible via wap?
Do I need to have my application approved my Nokia?  - I remember reading something about that but I've forgotten the details

Any other tips, examples or general help will be greatly appriciated.

Cheers

-OBCT
0
Comment
Question by:OBCT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 4

Expert Comment

by:SimonTay
ID: 10821425
You application does not need to be approved.

Your JAD file does need to be very specific, if you created it using the SUN dev kit, you will need to modify the path for the JAR file to match the one you have put on the web.

http://www.tdc.co.uk/gprs/tc45.htm has some example SMS messages to initiate the JAR file download and installation.
0
 
LVL 9

Author Comment

by:OBCT
ID: 10823002
I couldn't find anything I was looking for on that link. Maybe I was looking in the wrong place....

Do you know of any step by step guides with specifically what to do?
I've had a look around nokia's forum but I can't find anything.
0
 
LVL 4

Expert Comment

by:SimonTay
ID: 10823023
OTAP_IMP1.0/x0aPWD:password/x0aAPPDIR:a:/ota/x0a
JADURL:http://www.tdc.co.uk/java/rs232demo.jad/x0a
BEARER/x0aAPNORNUM:internet/x0aNETUSER:web/x0a
NETPWD:web/x0aSTART:install

was the OTAP message I was referring to, does yours have the proper path in it?

Have you also checked the path in the JAD file - does it start something like C:/? - if so, it's wrong, it should start http:// ....
0
Defend Your Organization from The Greatest Threats

Looking to fill the gaps in your security? Bring together information from the network, endpoint and threat intelligence feeds to really see what's happening in your organization. Join the WatchGuardians in their adventures fighting cyber crime!

 
LVL 9

Author Comment

by:OBCT
ID: 10823309
Originally my JAD file path was set to "MyApp.JAD" (Without the quotation marks).
I set the full website path and everything ran fine on the emulator but when I tried using my phone, I recieved the 'Page Not Found' error.

Ok, I just tried using a wap emulator and my page ran fine however the download link gave a "HTTP Error: 400 Bad Request" message....
Could this possibly be a problem with my WAP page?

I've put all the files for the application onto a web server for you to look at when/if you have time.
It contains the JAD, JAR, WAP and a zip file full of the source, classes etc..

http://www.wren-intermedia.com/wireless/
0
 
LVL 4

Expert Comment

by:SimonTay
ID: 10823424
Maybe it's that your telephone access does not allow full internet access only WAP web access? - certainly the JAD does look OK.
0
 
LVL 1

Expert Comment

by:buttermilktoast
ID: 10828109
i noticed in your wml, the link to the jad file, has a space in between, but your jad file does not have a space.  you would have to remove the space to link it properly.  i also had that error before because i was pointing to a  non-existant jad file.  also make sure you have the mime types set to push jad and jar files.  good luck!

0
 
LVL 9

Author Comment

by:OBCT
ID: 10834983
Fixing the small wml typo fixed the page not found error so thank you for that :)

Now I've got a new error saying "Unknown file format"......so how to I set the mime types up? I've heard of them but never known what they were or how to use them.
0
 
LVL 1

Accepted Solution

by:
buttermilktoast earned 500 total points
ID: 10835759
the mime types should be...

.jad  text/vnd.sun.j2me.app-descriptor
.jar  application/java-archive
 
i added these to my server under the http headers tab in the properties.  i'm not sure about your setup with my iis. i believe you have an apache server?  i'm not really familiar with that, but if you look in the config files, i believe there should be a file called mime.types in there.  you can add the lines

text/vnd.sun.j2me.app-descriptor jad
application/java-archive jar

or if you don't have access to that, i believe you can edit or create the .htaccess file in that directory.  all you need to add in that file is

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar

  from what i understand, mime types are basically a specification for sending non-ascii stuff over the internet, it's jus so that your browser knows what it's sending.  good luck!
0
 
LVL 9

Author Comment

by:OBCT
ID: 10838664
OMG!! It works!! :)
Thank you very very much for all your help, buttermilktoast!!
Enjoy the points, you certainly deserve them.

Cheers

-OBCT
0
 

Expert Comment

by:TariqRahim
ID: 11012730
Hi all
 i want to know that how much network info i can get through J2me and is it depends on my local Network Service Provider. and also the Which one is the best for development J2Me or Microsoft Development Kit for Mobiles
 Thnks
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With the purchase of CloudCommand by Comcast customers are left in a bind as subscriptions expire and render the AP's disabled. The following will explain how to flash your Ubiquiti AP's with CloudCommand firmware back to Ubiquiti firmware. HOWTO…
Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question