Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help on MiDlets

 
Gibril Touray
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1603
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Midlets on a web server???
 
Gibril Touray
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1603
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thats exactly what i mean.
any help please?
 
Swastik Dey
Rancher
Posts: 1603
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, what problem are you facing?
 
Gibril Touray
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In jad you should specify url to JAR (not jad).
And try replacing url with just jar name
 
Gibril Touray
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to set <mime-mapping> in web.xml


(check if that is for jar files)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic