wood burning stoves*
The moose likes Java Micro Edition and the fly likes Help on MiDlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Help on MiDlets" Watch "Help on MiDlets" New topic
Author

Help on MiDlets

Gibril Touray
Greenhorn

Joined: Nov 25, 2009
Posts: 5
Hello there,
I have written some MiDlets.
I have been trying to upload them on Apache Tomcat, but i'm stock.
Can someone please help me with the "howtos".
Thank you.
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1447
    
    6

Midlets on a web server???


Swastik
Gibril Touray
Greenhorn

Joined: Nov 25, 2009
Posts: 5
is it not possible?

then i must have been reading something wrong.
is it not possible to upload Jad/Jar files to a server?
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1447
    
    6

I guess you framed your question bit wrong. Probably you just wish the upload the jar/jad file to server and later download it to phone/simulator through OTA, am I right?
Gibril Touray
Greenhorn

Joined: Nov 25, 2009
Posts: 5
thats exactly what i mean.
any help please?
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1447
    
    6

So, what problem are you facing?
Gibril Touray
Greenhorn

Joined: Nov 25, 2009
Posts: 5
Ok, here's the problem:
first i tried to put Jad and Jar in the webapps folder of Tomcat.
I then tried to change the url specified in the Jad file.
I thought this would work but when i use : http://localhost:8080/[path to jad], i get connection error problem.
i checked the MIME settings, but they are alright.
any remedy to my ailment?
Aleksandar Babic
Ranch Hand

Joined: May 30, 2007
Posts: 68
In jad you should specify url to JAR (not jad).
And try replacing url with just jar name
Gibril Touray
Greenhorn

Joined: Nov 25, 2009
Posts: 5
Thanks for that.
Thats what i exactly did but it did not work.

1. i created a folder called mob in the webapps folder in tomcat
2. i moved my jar and jad files to that folder
3. i edited the jad file and changed the url to specify the path to the jar file
4. i then tried to get to http://localhost:8080/mob/myjarfile.jar
--- that didn't work.

i'll keep tweaking one or two things. It might work in the end.
Thank you
Aleksandar Babic
Ranch Hand

Joined: May 30, 2007
Posts: 68
Try to set <mime-mapping> in web.xml


(check if that is for jar files)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help on MiDlets
 
Similar Threads
Java Midlet in GSM CSD (9.6 Kbps)
I have 3 midlets but code to be displayed should be in first midlet .
add other midlets in J2ME Polish
Http 1.1 Connection
retrieve record store from a different Midlet