BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-18-2007, 08:50 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Model: 8100
PIN: N/A
Carrier: ATT
Posts: 50
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting up an OTA install

Please Login to Remove!

Ok so i feel sort of stupid, looking for some help.
I have an application and i have the .jad and .cod's and i am looking to enable them for OTA install on my webserver. Now if i just post them in a dir and hit the .jad with a browser i get the file info b/c the mime isnt setup. So digging through my web host info (dreamhost) it appears the only way to do this (since i dont have root access) is via a .htaccess file. their support says somthing like this:
Adding your own MIME types

You can add your own extensions to any directory by using a .htaccess file with lines like:

AddType application/andrew-inset ez
AddType video/x-flv flv

I understand how to do that, but what i am looking for is what the code for the BB aps is. after searching what i have found is:

.jad text/vnd.sun.j2me.app-descriptor
.cod application/vnd.rim.cod

Does that mean the .htaccess file should read:

AddType .jad text/vnd.sun.j2me.app-descriptor
AddType .cod application/vnd.rim.cod

Or how should it read?

Thanks.
Offline  
Old 09-19-2007, 03:08 AM   #2 (permalink)
New Member
 
Join Date: Apr 2005
Location: Melbourne, Australia
Model: 8800
Carrier: O2
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jalm1 View Post
Ok so i feel sort of stupid, looking for some help.
I have an application and i have the .jad and .cod's and i am looking to enable them for OTA install on my webserver. Now if i just post them in a dir and hit the .jad with a browser i get the file info b/c the mime isnt setup. So digging through my web host info (dreamhost) it appears the only way to do this (since i dont have root access) is via a .htaccess file. their support says somthing like this:
Adding your own MIME types

You can add your own extensions to any directory by using a .htaccess file with lines like:

AddType application/andrew-inset ez
AddType video/x-flv flv

I understand how to do that, but what i am looking for is what the code for the BB aps is. after searching what i have found is:

.jad text/vnd.sun.j2me.app-descriptor
.cod application/vnd.rim.cod

Does that mean the .htaccess file should read:

AddType .jad text/vnd.sun.j2me.app-descriptor
AddType .cod application/vnd.rim.cod

Or how should it read?

Thanks.
Can you not request that they add it to the mime.types file? It really should be in there...
Offline  
Old 09-19-2007, 10:57 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Model: 8100
PIN: N/A
Carrier: ATT
Posts: 50
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think they should be added, but they say just do it through a .htaccess file. Here is what worked, i created a .htaccess file with the following syntax and it worked.

AddType application/java-archive jar
AddType text/vnd.sun.j2me.app-descriptor jad
AddType audio/adpcm adp
AddType application/vnd.rim.cod cod
Offline  
Old 11-27-2008, 10:59 PM   #4 (permalink)
New Member
 
Join Date: Nov 2008
Model: None
PIN: N/A
Carrier: None
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi guys, I'm also on DreamHost, trying to set up OTA install

I have copy/pasted what jalm1 has above, and put in in an htaccess file in the root of my website directory.

When I go to the jar or jad file, it still just opens it as a text file

Any ideas?
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.