Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Configure apache so that it will serve midlets

12 views
Skip to first unread message

Kemal Enver

unread,
Feb 1, 2003, 8:24:49 AM2/1/03
to
Hi,
I've written some midles in java and would like to deploy them on to my
phone. The problem is that I can only do this 'over the air'. I decided to
download apache (windows) and run my own server to achieve this. I'm at the
stage where I can successfully navigate to the page, but I have been told I
need to make apache recognise the certain mime types. I have added the
following lines to my httpd.conf file:

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

This seems to have changed something, but I now get a "download terminated.
Permission denied error" If anybody knows how to set this up so that I can
deploy my app I'd be very greatful for any advice!

Thanks

Kemal Enver
u0...@dcs.shef.ac.uk


Kemal Enver

unread,
Feb 1, 2003, 9:15:53 AM2/1/03
to
OK, no need to bother. Got it to work! woohoo


Morten K. Hansen

unread,
Feb 1, 2003, 11:00:38 AM2/1/03
to
Den 01-02-2003 15:15, skrev Kemal Enver:

> OK, no need to bother. Got it to work! woohoo
>

I am in the same situation as you.

Any hints on how you achieved the goal?

--
Mvh / Regards
Morten K. Hansen
Replying by mail? Change 'spam' to my first name.
... Hvis ikke jeg har husket det hele, har jeg glemt det.

Kemal Enver

unread,
Feb 1, 2003, 11:58:35 AM2/1/03
to
Hi,
I installed the java wireless toolkit v1.4.1_01 (Suns web site) and then
i added the following lines to the end of the mime.types file which is
located in the apache/con directory:

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

make sure that between the 'words' there is actaully a space as well as a
tab, it seemed to make a difference.

If you try to connect to a jad file from now on you will be given the option
to open or save. If you press open the jad should open up in the default
emulator of the wireless toolkit. If it works on this it should then work
when you connect with your phone.

Another thing I found is that u should check the jad file and make sure that
the jar url 'tag' is an absolute url pointing the jar file i.e.
http://urip/whatever.jar you might also want to include your port
information like I have done in your html. i.e.

<wml>
<body>
<li><a href=http://xxx.xxx.xx.xx:80/games.jad>Click here to install suns
test stuff</a>
</body>
</wml>

Dont change anything else in the jad file! It'l mess it up!

If you have any problems email me and I'll help you out now I've got mine
working!

Regards

Kemal Enver
u0...@dcs.shef.ac.uk

0 new messages