PDA

View Full Version : Free webhosting allowing .jad/.jar downloading?



Blue
10-06-2003, 10:26 AM
Currently building a website & looking for free hosting that will allow the downloading of java applications. Currently keep running into hosting thats not properly configured to allow the downloads without corrupting them.

The more space the better.

TIA

Blue

Alinus
10-06-2003, 11:02 AM
moved to Links forum.

WilteredFire
10-06-2003, 12:58 PM
checkout ... h**p://www.freewebspace.net/

Check have tons of free webhosts and each ones features. Goodluck searching, i hope you find what you need.

Ps ... is it possible if you could private message me a host if you find one that works? I have about 250+ java games on pc, all good latest ones. It would be nice to setup a website for all you guys to download them n stuff.

Thanks. Goodluck

edph
11-06-2003, 09:51 AM
check this site http://www.tripod.lycos.co.uk for free hosting

to avoid the file type unknown error you need to edit the
".htaccess" file and include the appropriate mimetypes (i.e. jad, jar, mid, mmf, etc.)
then you can download the games.

if you need more help go to
http://jonroig.com/modules.php?op=modload&name=News&file=article&sid=74

-----------------
My web/wap homepage (http://edph.f2o.org/index.php)

Blue
11-06-2003, 06:07 PM
@edph

Thanks for that m8. It was just the information I needed.

Had put the site on Lycos, but it didn't work.

Just added a .htaccess file & it now works fine.

Thanks again

Blue

Dinger3410
11-06-2003, 09:01 PM
hi mate I have a lycos account but dont know how to make a.htacess file can you help me out?

Dinger :)

edph
12-06-2003, 04:02 AM
just create a text document using notepad and rename it to
".htaccess" and write the following lines...

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType text/vnd.wap.wml wml
AddType audio/amr amr
AddType audio/midi mid
AddType audio/midi midi
AddType application/vnd.Nokie.ringing-tone rng
AddType application/vnd.symbian.install sis
AddType application/vnd.wap.wmlc wmlc
AddType text/vnd.wap.wmlscript wmls
AddType text/vnd.wap.wmlscript wmlsc
AddType application/vnd.wap.sic sic
AddType text/vnd.wap.si si
AddType text/vnd.wap.sl sl
AddType application/vnd.wap.slc slc
AddType text/x-vCalendar vcs
AddType text/v-vCard vcf
AddType application/vnd.nokia.gamedata nqd
AddType application/x-nokiagamedata ngd
AddType image/vnd.wap.wmbp wbmp
AddType image/x-bmp bmp
AddType image/x-epoc-mbm mbm
AddType image/vnd.nok-3dscreensaver n3a
AddType text/x-co-desc cod
AddType image/vnd.nok-oplogo-colornokia-op-logo nok
AddType application/x-pmd .pmd
AddType audio/vnd.qcelp .qcp
AddType application/x-smaf .mmf

or simply unzip and upload this file to your linux server...

edph
16-06-2003, 04:51 AM
for nokia operator logos add this to .htaccess

AddType image/vnd.nok-oplogo-color nol

batman1056
20-06-2003, 09:00 AM
what does the Addtype do?

-AMO-
20-06-2003, 10:58 AM
Thanks very much, this is EXACTLY what i was looking for. :cool:

edph
24-06-2003, 01:24 PM
@batman1056

well basically Addtype is a directive used by .htaccess files, basically it adds and registers new mimetypes to your server which usually aren't added by default.

jpg, bmp, gif are common mimetype which are usually already added, so there is no need to add them. But if you need to customize your server to include mimetype which are unusual like .jar .jad files, you need to edit .htaccess and use "AddType".

adding .htaccess files is way of customizing your directories in your Apache server. You can do all sort of stuff with this file like password protect them or even banned ip's from accessing your site.

hope that helps...

_______________
My Homepage (http://www.edph.f2o.org)

brobert99
04-07-2003, 11:47 AM
Hi i am wanting to create a website so i can download java games onto my 3510i but which files should i upload to the site. i have both the .jad and .jar part of the game but which one should i point my wap browser on my phone to to allow me to dowload the game? i have loads of games i just dont know which parts to upload.

Please help me

wap site under construction - wap.genie.co.uk/brobert99

********check it out soon********

edph
05-07-2003, 05:32 AM
linking to the jar files works but according to nokia website, this is how its suppose to be done.....

from nokia (http://www.forum.nokia.com/html_reader/main/1,4997,2488,00.html?page_nbr=6)

6.1. Over-the-Air (OTA)

OTA deployment is when a MIDlet is installed on a WAP/Web server and then downloaded to a device via the device's WAP or Internet microbrowser.
As mentioned in Chapter 2, MIDP Development Process, a JAR file and a JAD file are required for OTA installation. The Sun ONE Mobile Edition IDE creates a JAD file automatically when a MIDlet suite is created.
The steps involved in a typical MIDlet installation are shown below.

http://www.forum.nokia.com/pics/hello_with_midlet2.jpg
Figure 6.1 : Typical MIDlet installation using OTA
The process begins by browsing to a page that includes a link to a MIDlet suite. The link is then clicked, which causes the WAP/Web server to deliver the JAD file for the MIDlet suite to the browser.
On receipt of the JAD file, it is opened and its contents are displayed. The JAD file contains a description of the MIDlet suite, including its size, version number, and who provided it. A request is then sent for the JAR file and, finally, the Web server delivers the JAR file. Once the JAR file has been delivered to the device, the suite is installed and individual MIDlets can be selected and run.
To put a MIDlet on a device using OTA provisioning:
Edit the JAD file. In the Sun ONE studio, right click on the MIDlet suite in the Explorer panel. The editable values will all be listed in the Required and Optional tabs of the property sheet. Change the MIDlet-Jar-URL attribute so that it points to the JAR file using an absolute URL. For example, if the Web server is running on the local machine, the URL will look something like: http://localhost:8080/HelloWorld.jar.
Install the JAD file and JAR file on the Web server.
Create a WAP or Web page with a hypertext link to the JAD file. The hypertext link must also be an absolute URL. For example:

<wml>
<body>
<a href=http://localhost:8080/HelloWorld.jad>Click here
to install</a>
</body>
</wml>

Configure the Web server's MIME types so that JAD files are returned with MIME type text/vnd.sun.j2me.app-descriptor and JAR files are returned with MIME type application/java-archive.
Point the device's WAP browser (if a WAP page has been created) or Web browser (if a Web page has been created) to the URL of the created page. Click on the link.
Every device that supports the Java platform will have a piece of software for application delivery and management. As this software is device specific, the term Application Management Software (AMS) is generally used to describe it. Once a link to a JAD file has been clicked, the device's AMS will activate and display the name, version, and origin of the MIDlet suite .
With the details of the suite displayed, the AMS should give an option to install the suite.
The AMS should now also provide the ability to run any of the installed MIDlets. Run the MIDlet that has just been installed.

therefore
you must link to the jad file and edit it(notepad), so that the MIDlet-Jar-URL attribute points directly to the jar file...
_____________
my homepage (http://www.edph.f2o.org)

brobert99
05-07-2003, 02:32 PM
thanks very much for the advice. im trying to get my 3510i games site up and running asap

edph
07-07-2003, 06:04 AM
A good free webhost that will allow the download of all the files above (sis, jar, mmf, jad etc) is Portland (http://www.portland.co.uk/)

just make sure you read about my post concerning ".htaccess"

check out this thread (http://nokiafree.org/forums/t31243/s.html) if you need more help


________________
my homepage (http://www.edph.f2o.org)

aazain
10-07-2003, 06:33 AM
What AddType do I include in my .htaccess file for goboy roms

aazain
13-07-2003, 07:05 AM
How can I password protect my WAP site??

Do I need to modify my .htaccess file for this?? If so, can someone please let me know how can I go about doing this.

Thanks,

edph
14-07-2003, 10:20 AM
you will need somekind of server side scripting language such as php or asp.

Actually im presently doing something like this here (http://wap.edph.f2o.org)... I haven't actually fully tested it with an actual wap phone, since from where i am, i dont have access to wap services. But it works fairly well on a nokia sdk 7210 emulator.

Say if you're not busy could you test it and send me somefeedback on my webpage. Maybe I can help you aswell with your codes , provided you have a php 4.1.0 enabled webhost. Send me a PM if you're interested.

edph
14-07-2003, 10:34 AM
about goboy roms....

sorry i don't know much about them. But I red somewhere that if you have Zipman (http://www.wildpalm.co.uk/ZipMan7650.html), you can download the games which are compressed with zip and then unzip them using that utility. Therefore you don't need to add anything to your .htaccess file since most server already support the zip mimetypes. But if not you can use this

AddType application/zip .zip

I hope that helps, coz as i told you im not familiar with goboy roms. Its just something i red on the net.

dajoebomb
18-07-2003, 10:26 AM
When i go to my wapsite it lists all the files e.g:

summergames.jad
(size...)
Summergames.jar
(size...)

But when i click on the .jad file to download, it starts downloading then it says 'invalid file type' after it has downloaded to my phone (7210).

I was wondering if anyone could help??

Thanks Joe

edph
20-07-2003, 03:35 PM
read my post regarding ".htaccess" above!!!

when the phone queries the jar file which by the way was specified at the jad file with the MIDlet-Jar-URL: attribute, the server must return a header content type application/java-archive, if not the phone wont recognize the file you are downloading and hence the unknown file type error.

so, edit the jad file.. to change the MIDlet Jar URL attrribute to point directly to the jar file ie

MIDlet-Jar-URL: http://edph.f2o.org/mystuff/multimedia/games/n6610-7210/game.jar

add a htaccess file(given above) to both jad directory and the jar directories if they are not at the same directory.

lastly make sure that the jad file matches the jar file... you cannot use a jad file for another one which it was not intended for.(particularly if the MIDlet-Jar-size attribute doesn't match the actual jar file the phone wont accept it.)

one final note: get rid of the extra carriage returns at the end of the jad file to ensure that the phone recognizes it. i actually spent 3 hours trying to figure out what was wrong with my jad files untill i noticed that there were extra lines at the end of the file...

hope that helps....

dajoebomb
20-07-2003, 04:34 PM
I have done all of this and come to the conclusion that its my servers fault the file on my local system is 55,717 like the *.Jar file says it is. Then when i upload to my server it changes it to 55, 694. Can anyone suggest why and how to fix this?


Thanks very much

Joe

dajoebomb
20-07-2003, 04:55 PM
55,717 like the *.Jar file says it is.

Sorry should read *.Jad

Sorry

edph
20-07-2003, 08:17 PM
there is no jad file that is 55 kilobytes in size...

the jad file should be small since it only has a few text lines... and it was made small to avoid long transmission time, as oppose to downloading jar files which can go up to 64 kilobytes and can take up time. The jad files should contain the description for the jar file(ie size), and when downloaded it should present a choice whether to download the jar file or not.

so if the jad file is 55kb chances are it was corrupted in the first place, try oppening it with a text editor and see if there are weard characters...

but probably you were right in the first place that it was a jar file....

if uploading the file to your server somehow corrupts it.. try uploading it in binary mode.. if it still fails... try uploading the jar and jad to your phone using mobimb to test it...

edph
22-07-2003, 05:44 AM
sorry i was mistaken... probably you meant that the attribute "MIDlet size" in the jad file indicates that the jar file is 55,717. If so then a problem occured during the upload...

Probably you uploaded it using ASCII mode, java executables(jar files) should be uploaded in binary mode. Which ftp program are you using?

dajoebomb
22-07-2003, 07:04 PM
i am using FlashFXP. Ill try uploading it in binary mode. Ill reply later. Thank for helping me

dajoebomb
22-07-2003, 07:56 PM
Success, Thank you very much, i just need to upload in Binary mode!!!! That simple!!!


Thank you so much for your help!!!

donat
25-07-2003, 02:37 PM
There is a bug in Edph's ".htaccess":
AddType image/vnd.wap.wmbp wbmp
Change it to:
AddType image/vnd.wap.wbmp wbmp

My questions:

I use WinCommander's FTP. After uploading ".htaccess" I don't know why I cannot see it in the Commander's window among the other uploaded files. It must be there because it works.

In the html "a" tag I can add a "type" argument. As well as I know it is purposed to provide mime types. But as I can see it is not worth much. Has anyone some positive experience with that?


myhome (http://donat.7p.org.uk)
mirror (http://csucsposta.hu/donat)

Szilágyi Donát

edph
25-07-2003, 06:53 PM
Yes you're right about the wbmp... sorry for the typo... actually i just noticed it a while ago.

any file that starts with a "." in apache are hidden files, they are indeed there. I dont know about wincommander ftp but in WS_ftp, which I use, there is an option to show files which are hidden.

WildSwan
30-07-2003, 10:12 AM
I made a WAP site and had it hosted by portland. Gee, it's a pain in the neck uploading/downloading files in their server.

I uploaded .MID files but when I access the site through my 6610, I get File format unknown error. But the pictures and Java files works great.

My .htaccess file has this:

AddType audio/midi mid
AddType audio/midi midi

What am I doing wrong?

edph
30-07-2003, 04:12 PM
yes their servers are a bit slow... but I do have all my jar files hosted there... my zip files at netfirms.... my jad, midi and images at my own server..

its should work...
unless there are spaces on the name of the file..
like...
Always on Time - Ja Rule.mid
you should link it like so....
<a href="http://www.server.com/your%20folder/Always%20on%20Time%20-%20Ja%20Rule.mid">Always on Time - Ja Rule.mid</a>

...hmmn the server is case sensitive maybe you should try renaming your *.MID to *.mid

and lastly make sure the file is not too big..

I do have a problem myself regarding midi files, when downloaded the phone says "no title for tone"... you have to manually name the file to whatever.mid... never was able to find a solution... anyway if anybody knows how to solve this pls. post it here.

WildSwan
31-07-2003, 05:00 AM
I am begining to have an interest with PHP. Any suggestion what book to dig in?

I will try renaming the MID files.

Thanks.

Hey, any other alternative to portland? I have been uploading my edited wap site for days now and it is not yet complete till now. :)

edph
31-07-2003, 03:22 PM
for hosting....
you could try
http://hosting.free2code.net/
there are no advertisments there but its a bit hard getting into them, but their servers are up to date with the latest version...
they host only webdevelopers...

for books and references
http://www.php.net and
http://www.mysql.net

for free scripts...
www.hotscripts.com

brokenshirt
01-08-2003, 01:29 PM
hey..

to <b>edph</b>,

i took your advice and signup with portland.co.uk.. its great and all.. thanx for the notion.

1. i need to know where should i put the <b>.htaccess</b>.. will it be under the <b>root</b> folder or should it be in the <b>cgi-bin</b> folder.

2. is there any additional markup that i should write on the *.wml file in order for it to read the .htaccess?

3. Lastly.. i've gambled and put the .htaccess file in the cgi-bin, i'm positive that i've included all the MIME types that i needed. but still when i'm trying to download the ringtones.. it says.. document contains invalid data.

thanx in advance.

edph
01-08-2003, 01:55 PM
1. you could put it at the root folder, any file or folder within or below it will then be affected by it. if you put it at another folder any subfolder below that folder would be affected by it but not the parent folder where there is no .htaccess.

2. You dont need to add any tags on your scripts, as i said any folder or files within or below where the .htacess file is, will be affected by those settings.

3. put the .htaccess file to the root folder instead, that will solve your problem.... :D:D:D:D:D

read more about apache and .htaccess here
http://www.thesitewizard.com/apache/index.shtml

brokenshirt
01-08-2003, 02:10 PM
:D Thanx for the pointer edph,

i've uploaded the .htaccess to the root.. but still to no avail.. it does not work still..

i'm trying to download *.mmf files to my phone (samsung.. oops mind the brand :D ) i've inserted the correct mime types.. but still the error remains the same.

here's my *.wml page
=============================================

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>
<card title="Ringtones">
<p>
Zull | Wap<br/>
<a href="500miles.mmf">1. 500 Miles</a><br/>
<a href="Creep.mmf">2. Creep</a><br/>
<a href="High_And_Dry.mmf">3. High n Dry</a><br/>
<a href="knewloveu.mmf">4. I Knew I Love You</a><br/>
<a href="Mr_Jones.mmf">5. Mr. Jones</a><br/>
<a href="smooth.mmf">6. Smooth Criminal</a><br/>
<a href="sweetchild.mmf">7. Sweet Child O Mine</a><br/>
<a href="sweetdreams.mmf">8. Sweet Dreams</a><br/>
<a href="truelymadlydeeply.mmf">9. Truly Madly Deeply</a>
</p>
</card>
</wml>

=============================================

and here's my .htaccess file
=============================================
AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType text/vnd.wap.wml wml
AddType audio/amr amr
AddType audio/midi mid
AddType audio/midi midi
AddType application/vnd.Nokie.ringing-tone rng
AddType application/vnd.symbian.install sis
AddType application/vnd.wap.wmlc wmlc
AddType text/vnd.wap.wmlscript wmls
AddType text/vnd.wap.wmlscript wmlsc
AddType application/vnd.wap.sic sic
AddType text/vnd.wap.si si
AddType text/vnd.wap.sl sl
AddType application/vnd.wap.slc slc
AddType text/x-vCalendar vcs
AddType text/v-vCard vcf
AddType application/vnd.nokia.gamedata nqd
AddType application/x-nokiagamedata ngd
AddType image/vnd.wap.wmbp wbmp
AddType image/x-bmp bmp
AddType image/x-epoc-mbm mbm
AddType image/vnd.nok-3dscreensaver n3a
AddType text/x-co-desc cod
AddType image/vnd.nok-oplogo-colornokia-op-logo nok
AddType application/x-pmd .pmd
AddType audio/vnd.qcelp .qcp
AddType application/vnd.smaf .mmf
=============================================

edph
02-08-2003, 12:27 PM
make sure that you uploaded your audio mmf files in binary mode...and make sure you're pointing to the right file.

there is nothing wrong with your script, it should work...

hmmn... probably the problem is with the .htaccess file... try removing the "."
like so
AddType application/vnd.smaf mmf

I have a nokia phone myself, I never tested it with other phones, so tell me if it works...

and BTW
the WBMP is wrong as pointed out by donat posted above

change it to
AddType image/vnd.wap.wbmp wbmp

brokenshirt
04-08-2003, 07:08 AM
thanx for the concern edph ...

i finally solved the big enigma... you're right edph it should work & there's nothing wrong with my code..

its the *.mmf file itself that is not compatible with my phone.. so it keeps giving me the nerve-breaking error "Document Contains Invalid Data"

i converted the *.mmf file to a compatible format and it works like a charm.

and to think i spent hours digging in codes and all.. phewww...

anyways... thanx... couldnt have done it without u.

NokiaPhreak
18-08-2003, 05:43 AM
I can host anyone wapsite free. contact me if you want.